
spring
文章平均质量分 54
小向光
这个作者很懒,什么都没留下…
展开
-
Context namespace element 'component-scan' and its parser class [org.springframework.context.annotat
项目中用的spring框架,之前项目在jdk1.7下面运行的好好地,但是到了jdk1.8的时候,就爆下面这个错误。Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser原创 2016-11-11 17:46:52 · 2537 阅读 · 0 评论 -
spring3.0 中新增的@value注解
在spring 3.0中,可以通过使用@value,对一些如xxx.properties文件 中的文件,进行键值对的注入。1、配置applicationContext.xml<beans xmlns="http://www.springframework.org/schema/beans" xmlns:tx="http://www.springframework.o原创 2017-01-06 22:42:48 · 539 阅读 · 0 评论 -
spring mvc设置应答体的content type
spring MVC中如何设置应答体的 content type 呢?我们知道response 的content type主要有:text/html,text/plain,application/json;charset=UTF-8,application/octet-stream等先举一个例子,spring mvc中可以通过如下方式返回json字符串:@Respo原创 2017-02-07 21:56:10 · 2420 阅读 · 0 评论