解決SpringBootUnable to start web server錯誤

完整錯誤信息如下:

 - Exception encountered during context initialization - cancelling refresh attempt:

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is

org.springframework.beans.factory.BeanCreationException: Error creating bean with name

'org.springframework.boot.autoconfigure.web.servlet.ServletWebServerFactoryConfiguration$EmbeddedTomcat': Initialization of

bean failed; nested exception is java.lang.IllegalArgumentException: error at ::0 can't find referenced pointcut log

經檢查發現,是因爲切面類中沒有log方法,改正後運行正常

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章