add startup info
This commit is contained in:
@@ -4,6 +4,10 @@
|
|||||||
*/
|
*/
|
||||||
package com.jeesite.modules;
|
package com.jeesite.modules;
|
||||||
|
|
||||||
|
import com.jeesite.common.config.Global;
|
||||||
|
import com.jeesite.common.io.FileUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||||
@@ -16,9 +20,18 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
|
|||||||
*/
|
*/
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class ApiApplication extends SpringBootServletInitializer {
|
public class ApiApplication extends SpringBootServletInitializer {
|
||||||
|
|
||||||
|
private static Logger logger = LoggerFactory.getLogger(ApiApplication.class);
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(ApiApplication.class, args);
|
SpringApplication.run(ApiApplication.class, args);
|
||||||
|
logger.info(
|
||||||
|
"\r\n\r\n==============================================================\r\n"
|
||||||
|
+ "\r\n 启动完成,接口地址:http://127.0.0.1:"
|
||||||
|
+ Global.getProperty("server.port") + FileUtils.path("/"
|
||||||
|
+ Global.getProperty("server.servlet.context-path"))
|
||||||
|
+ "\r\n\r\n 默认管理账号: system 密码: admin"
|
||||||
|
+ "\r\n\r\n==============================================================\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
package com.jeesite.modules;
|
package com.jeesite.modules;
|
||||||
|
|
||||||
import com.jeesite.common.config.Global;
|
import com.jeesite.common.config.Global;
|
||||||
|
import com.jeesite.common.io.FileUtils;
|
||||||
import com.jeesite.common.web.BaseController;
|
import com.jeesite.common.web.BaseController;
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
@@ -38,9 +39,9 @@ public class FastApplication extends SpringBootServletInitializer {
|
|||||||
logger.info(
|
logger.info(
|
||||||
"\r\n\r\n==============================================================\r\n"
|
"\r\n\r\n==============================================================\r\n"
|
||||||
+ "\r\n 启动完成,访问地址:http://127.0.0.1:"
|
+ "\r\n 启动完成,访问地址:http://127.0.0.1:"
|
||||||
+ Global.getProperty("server.port") + "/"
|
+ Global.getProperty("server.port") + FileUtils.path("/"
|
||||||
+ Global.getProperty("server.servlet.context-path")
|
+ Global.getProperty("server.servlet.context-path"))
|
||||||
+ "\r\n\r\n 默认用户名: system 密码: admin"
|
+ "\r\n\r\n 默认管理账号: system 密码: admin"
|
||||||
+ "\r\n\r\n==============================================================\r\n");
|
+ "\r\n\r\n==============================================================\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,6 +4,10 @@
|
|||||||
*/
|
*/
|
||||||
package com.jeesite.modules;
|
package com.jeesite.modules;
|
||||||
|
|
||||||
|
import com.jeesite.common.config.Global;
|
||||||
|
import com.jeesite.common.io.FileUtils;
|
||||||
|
import org.slf4j.Logger;
|
||||||
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||||
@@ -16,9 +20,18 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
|
|||||||
*/
|
*/
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class Application extends SpringBootServletInitializer {
|
public class Application extends SpringBootServletInitializer {
|
||||||
|
|
||||||
|
private static Logger logger = LoggerFactory.getLogger(Application.class);
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(Application.class, args);
|
SpringApplication.run(Application.class, args);
|
||||||
|
logger.info(
|
||||||
|
"\r\n\r\n==============================================================\r\n"
|
||||||
|
+ "\r\n 启动完成,访问地址:http://127.0.0.1:"
|
||||||
|
+ Global.getProperty("server.port") + FileUtils.path("/"
|
||||||
|
+ Global.getProperty("server.servlet.context-path"))
|
||||||
|
+ "\r\n\r\n 默认管理账号: system 密码: admin"
|
||||||
|
+ "\r\n\r\n==============================================================\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user