You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.3 KiB
29 lines
1.3 KiB
3 years ago
|
package com.epmet;
|
||
3 years ago
|
|
||
|
import org.springframework.boot.SpringApplication;
|
||
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||
|
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
|
||
|
import org.springframework.context.ConfigurableApplicationContext;
|
||
|
import org.springframework.core.env.Environment;
|
||
|
|
||
|
/**
|
||
|
* 积木报表独立服务启动类
|
||
|
*/
|
||
|
@SpringBootApplication
|
||
|
@EnableAutoConfiguration(exclude={MongoAutoConfiguration.class})
|
||
|
public class JimuReportApplication {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
ConfigurableApplicationContext application = SpringApplication.run(JimuReportApplication.class, args);
|
||
|
Environment env = application.getEnvironment();
|
||
|
String port = env.getProperty("server.port");
|
||
|
String path = env.containsProperty("server.servlet.context-path")?env.getProperty("server.servlet.context-path"):"";
|
||
|
System.out.print("\n----------------------------------------------------------\n\t" +
|
||
|
"Application JimuReport Demo is running! Access URL:\n\t" +
|
||
|
"Local: \t\thttp://localhost:" + port + path + "/jmreport/list\n\t" +
|
||
|
"----------------------------------------------------------");
|
||
|
}
|
||
|
|
||
|
}
|