@AllArgsConstructor 和 @Value 一起用會報錯(未知)

不知道什麼原因,記錄一下


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2019-10-12 09:54:04.629 ERROR 9656 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in com.cjh.wechatmp.controller.TestController required a bean of type 'java.lang.String' that could not be found.


Action:

Consider defining a bean of type 'java.lang.String' in your configuration.

 

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