为了账号安全,请及时绑定邮箱和手机立即绑定

启动项目报错

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloController': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'cupSize' in value "${cupSize}"

正在回答

4 回答

把cupSize写下点 不然都在   Server:  下了  变成了   server.cupSize = B

3 回复 有任何疑惑可以回复我~
#1

wanan_qilei 提问者

非常感谢!
2018-07-31 回复 有任何疑惑可以回复我~

理解了好久一楼的“写下点”,就是把cupSize前的两个空格去掉,成为和server并集

0 回复 有任何疑惑可以回复我~
#1

qq_陈宝山_0

肥肠感谢嘻嘻嘻
2018-09-18 回复 有任何疑惑可以回复我~

代码截图https://img1.sycdn.imooc.com//5b4ef6980001654902530118.jpghttps://img1.sycdn.imooc.com//5b4ef6b800011e3a06520395.jpg

0 回复 有任何疑惑可以回复我~
#1

范老大

这个问题怎么解决的,我代码现在跟教学写的一样啊,为啥启动Tomcat的时候还是报错
2018-09-16 回复 有任何疑惑可以回复我~

cupSize值有问题 , 代码贴个图,光看看不出来

0 回复 有任何疑惑可以回复我~
#1

wanan_qilei 提问者

贴评论里面了
2018-07-18 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
2小时学会Spring Boot
  • 参与学习       151654    人
  • 解答问题       1079    个

Spring Boot入门视频教程,你将学会使用Spring Boot快速构建应用程序

进入课程

启动项目报错

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信