mirror of https://github.com/halo-dev/halo
👽调整启动端口日志
parent
81b9389d34
commit
dd8c026410
|
@ -4,6 +4,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||||
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.cache.annotation.EnableCaching;
|
import org.springframework.cache.annotation.EnableCaching;
|
||||||
|
import org.springframework.context.ApplicationContext;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @author RYAN0UP
|
* @author RYAN0UP
|
||||||
|
@ -14,7 +15,8 @@ import org.springframework.cache.annotation.EnableCaching;
|
||||||
@EnableCaching
|
@EnableCaching
|
||||||
public class Application {
|
public class Application {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
SpringApplication.run(Application.class, args);
|
ApplicationContext context = SpringApplication.run(Application.class, args);
|
||||||
log.info("Halo started at http://localhost:8090");
|
String serverPort = context.getEnvironment().getProperty("server.port");
|
||||||
|
log.info("Halo started at http://localhost:" + serverPort);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue