update logger
This commit is contained in:
@@ -4,6 +4,10 @@
|
||||
*/
|
||||
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.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.builder.SpringApplicationBuilder;
|
||||
@@ -15,9 +19,18 @@ import org.springframework.boot.web.servlet.support.SpringBootServletInitializer
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class MiniApplication extends SpringBootServletInitializer {
|
||||
|
||||
private static final Logger logger = LoggerFactory.getLogger(MiniApplication.class);
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(MiniApplication.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")
|
||||
+ Global.getAdminPath()) + "/state/server/index"
|
||||
+ "\r\n\r\n==============================================================\r\n");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user