通过运行main方法启动一个spring boot 项目,启动后发现控制台报如下错误。
log4j:WARN No appenders could be found for logger (org.springframework.boot.devtools.settings.DevToolsSettings).
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 :: (v1.5.6.RELEASE)
八月 12, 2017 5:18:16 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
八月 12, 2017 5:18:16 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet Engine: Apache Tomcat/8.5.16
八月 12, 2017 5:18:16 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
八月 12, 2017 5:18:17 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service [Tomcat]
应该怎样解决,是使用spring+mybatis的项目
错误信息太少,你试一下以DEBUG日志模式启动
$ java -jar app.jar --debug
或者在 application.properties 中配置debug=true