Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-04-13 14:47:20.073 ERROR 12824 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Parameter 2 of constructor in cn.rapidio.controller.AdminRenderController 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.
Process finished with exit code 1

查看类中是否同时使用了@Value和@AllArgsConstructor
请使用@RequiredArgsConstructor或@Data替换@AllArgsConstructor
本文分析了SpringBoot应用程序在启动时遇到的问题,具体表现为在AdminRenderController构造函数中找不到所需的String类型bean,建议在配置中定义相应类型的bean,并检查类中是否误用@Value和@AllArgsConstructor注解。
499

被折叠的 条评论
为什么被折叠?



