1. 程式人生 > >解決SpringBootUnable to start web server錯誤

解決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方法,改正後執行正常