server模塊啟動(dòng)不了
運(yùn)行BootMoreApplication,webapp啟動(dòng)不了。
E:\JDK\bin\java.exe ...
log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
? . ? ____ ? ? ? ? ?_ ? ? ? ? ? ?__ _ _
?/\\ / ___'_ __ _ _(_)_ __ ?__ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
?\\/ ?___)| |_)| | | | | || (_| | ?) ) ) )
? ' ?|____| .__|_| |_|_| |_\__, | / / / /
?=========|_|==============|___/=/_/_/_/
?:: Spring Boot :: ? ? ? ?(v2.0.5.RELEASE)
Process finished with exit code 1
2019-02-14
你這是一開始就用 spring boot 2.0.5的版本嗎?
如果是的話 可以參考第5章-擴(kuò)展章節(jié) 所講的:采用springboot2.x擴(kuò)展項(xiàng)目
2019-02-14
你這是少了log4j.properties即 日志配置文件。