SEVERE: Context [/******] startup failed due to previous errorsjava
Tomcat報的錯太含糊了,什麼錯都沒報出來,只提示了Error listenerStart。爲了調試,咱們要得到更詳細的日誌。能夠在WEB-INF/classes目錄下新建一個文件叫logging.properties,內容以下apache
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler tomcat
####################################################### spa
# Handler specific properties. debug
# Describes specific configuration info for Handlers. 調試
####################################################### 日誌
org.apache.juli.FileHandler.level = FINE orm
org.apache.juli.FileHandler.directory = ${catalina.base}/logs ci
org.apache.juli.FileHandler.prefix = error-debug. io
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter