在WEB-INF/classes 下增加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 = ${catalina.base}/logs
- org.apache.juli.FileHandler.prefix = error-debug.
- java.util.logging.ConsoleHandler.level = FINE
- java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
最終定位問題是由於mysql 數據庫區分大小寫,導致啓動時報錯 ,表不存在,更坑的是雲上的數據庫是在控制檯修改的,直接修改my.cnf不起作用,控制檯修改後,項目成功啓動。問題搞定