![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
spring
大头的狗子
种一棵树最好的时间是十年前,其次是现在。
展开
-
spring容器创建bean时对属性中含有日期的处理方法
背景:当创建Professional这个bean时,属性中含有日期,此时必须对日期进行处理,将字符串格式转化为日期格式,否则会报错,处理方法如下:<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.o原创 2017-01-08 09:17:37 · 519 阅读 · 0 评论 -
spring整合mybatis
一、导入jar包 1、mybatis-spring-1.2.5.jar 2、spring-jdbc-4.3.5.jar 3、Druid-1.0.26.jar//使用的是阿里巴巴旗下的Druid数据库连接池 二、用spring管理SqlSessionFactory spring.xml配置文件:<?xml version="1.0" encoding="UTF-8"?> <b原创 2017-01-09 15:00:54 · 204 阅读 · 0 评论