Error starting ApplicationContext. To display the conditions report re-run your application with 'de

当创建springboot出现Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
Error starting ApplicationContext. To display the conditions report re-run your application with 'de_第1张图片
在网上看了很多有的说是jar包重复,有的说是Controller包和Application包处于平行位置。然后我都检查了,然后我出的错不属于这两种情况。后来自己找出了错误原因。
出错原因:
Error starting ApplicationContext. To display the conditions report re-run your application with 'de_第2张图片
可以看到我的@RequestMapping的value值是这样写的,然后只要改了就可以了
修改后:
Error starting ApplicationContext. To display the conditions report re-run your application with 'de_第3张图片
启动成功:
在这里插入图片描述
访问成功:
Error starting ApplicationContext. To display the conditions report re-run your application with 'de_第4张图片
希望能对大家有所帮助。

你可能感兴趣的:(java,java,springboot)