spring学习
ceoicac
这个作者很懒,什么都没留下…
展开
-
spring: Failed to read candidate component class异常
环境:jdk:1.8 spring3.2异常:java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:157) at org.spr原创 2017-07-02 09:51:25 · 642 阅读 · 0 评论 -
@RequestParam 注解 attribute value must be a constants
如下代码所示:我在利用@RequestParam 为max参数设置默认值MAX_LONG_AS_STRING 得实惠,产生了一个错误attribute value must be a constantsprivate static final String MAX_LONG_AS_STRING = Long.toString(Long.MAX_VALUE);@RequestMapping...原创 2019-06-03 21:58:06 · 9674 阅读 · 0 评论 -
spring 实战 文件上传页面报错
错误:Cannot convert value of type [java.lang.String] to required type [org.springframework.web.multipart.MultipartFile] for property ‘xxx’: no matching editors or conversion strategy found]原因:检查form表...原创 2019-07-01 21:59:15 · 535 阅读 · 0 评论 -
spring in action tiles配置后,然后访问页面没有生效。
最近在看《Spring 实战》第6章第3节使用Apache Tiles视图定义布局的时候,在实现书中的代码的时候配置好tiles后,访问页面,发现配置tiles并没有生效,该页面并没有加入footer.jsp 和 header.jsp里的内容。刚开始,我以为是我没有把相关的配置配置对,后来与书中的源码核对了几遍,发现并没有出错。后来我专门搜索了tiles相关原理以及配置的过程、配置参数的作用入...原创 2019-06-29 23:18:43 · 272 阅读 · 0 评论