: Application startup failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'helloController': Injection of auautowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'cupSize' in value "${cupSize}"
2017-11-06
http://www.imooc.com/learn/767: 如果是用IDEA+maven的话,换国内的源,然后run,不然会提示“Exception in thread "main" java.lang.NoClassDefFoundError”是jar包没有下载成功。例如用IDEA自带的maven的时候,改一下maven源的配置:JetBrains\IntelliJ IDEA 2017.2.5\plugins\maven\lib\maven3\conf\settings.xml:加上阿里云的源。http://www.cnblogs.com/phpdragon/p/7216626.html
2017-11-04
org.springframework.http.converter.HttpMessageNotWritableException
如果报这个错,可以在girl类上边加一个注解
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","operations","roles","menus"})
其中hibernateLazyInitializer,handler必须添加!
如果报这个错,可以在girl类上边加一个注解
@JsonIgnoreProperties(value={"hibernateLazyInitializer","handler","operations","roles","menus"})
其中hibernateLazyInitializer,handler必须添加!
2017-11-04