
spring
文章平均质量分 84
能量守恒洛
这个作者很懒,什么都没留下…
展开
-
org.springframework.dao.DataAccessException not found
org.springframework.dao.DataAccessException not found原创 2014-08-12 15:20:17 · 8554 阅读 · 0 评论 -
no declaration can be found for element mvc resources
原文:http://blog.youkuaiyun.com/zb0567/article/details/7921273转载 2014-08-12 15:14:10 · 2322 阅读 · 0 评论 -
Spring MVC3.0.5搭建全程
简单写一个搭建Spring MVC3.0的流程(以Spring3.0.5为列),数据库交互使用SpringJdbcTemplate,附件有项目(没有jar包)。整个项目结构如下图所示: 1、去官网下载3.0.5所有jar包,所需jar包,见附件图片,每个jar包得用处如下: org.springframework.aop- 3.0.0.RELEASE--------转载 2014-08-29 10:51:11 · 844 阅读 · 0 评论 -
Spring自动注入Bean
通过@Autowired或@Resource来实现在Bean中自动注入的功能,但还要在配置文件中写Bean定义,下面我们将介绍如何注解Bean,从而从XML配置文件中完全移除Bean定义的配置。 1. @Component(不推荐使用)、@Repository、@Service、@Controller 只需要在对应的类上加上一个@Component注解,就将该类定义为一个Bean了:转载 2014-08-29 10:47:38 · 1072 阅读 · 0 评论 -
Spring3 MVC 注解(一)---注解基本配置及@controller和 @RequestMapping 常用解释
原文:http://ttaale.iteye.com/blog/761861 一:配置web.xml 1)问题:spring项目中有多个配置文件mvc.xml dao.xml 2)解决:在web.xml中 contextConfigLocation /WEB-IN转载 2014-12-17 17:31:15 · 1834 阅读 · 0 评论 -
解决SpringMVC的@ResponseBody返回中文乱码
原文:http://blog.youkuaiyun.com/u011109042/article/details/40818013?utm_source=tuicool SpringMVC的@ResponseBody返回中文乱码的原因是SpringMVC默认处理的字符集是ISO-8859-1,在Spring的org.springframework.http.converter.StringH转载 2015-08-18 10:53:02 · 1469 阅读 · 0 评论 -
Spring中使用Map、Set、List、数组、属性集合的注入方法配置文件
标签:spring中使用mapsetlist数 spring注入 mapsetlist数组属性集合的注入方 spring配置文件 (1)下边的一个java类包含了所有Map、Set、List、数组、属性集合等这些容器,主要用于演示Spring的注入配置; package com.lc.collection; import java.util.List; impo转载 2016-08-15 15:24:11 · 2232 阅读 · 0 评论 -
web.xml配置文件中<async-supported>true</async-supported>报错的解决方案
在写web.xml的时候又一次总是报cvc-complex-type.2.4.a: Invalid content was found starting with element 错误,还出现小红叉,在网上找了很多,有说是把报红叉的代码写在之间,试了之后发现完全没用。 后来在外文网站上找到了一个方法就把问题解决了 解决方法一: 在eclipse中配置xml 1、 h转载 2016-12-05 10:35:00 · 1245 阅读 · 0 评论