Tomcat启动报错: One or more listeners failed to start. Full details will be found in the appropriate container log file
在src/main/reousrces/
下添加文件 logging.properties
,内容如下:
handlers = org.apache.juli.FileHandler, java.util.logging.ConsoleHandler
############################################################
# Handler specific properties.
# Describes specific configuration info for Handlers.
############################################################
org.apache.juli.FileHandler.level = FINE
org.apache.juli.FileHandler.directory = ../logs
org.apache.juli.FileHandler.prefix = error-debug.
java.util.logging.ConsoleHandler.level = FINE
java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
这样tomcat启动的时候就会打印错误日志,根据具体错误解决就OK了