( "
%-
.
%/
& '() *"
0'()*
+
+
#$
Spring 2.5 引入了 @Autowired 注释,它可以对类成员变量、方法及构造函数进行标
注,完成自动装配的工作。 通过 @Autowired 的使用来消除 set ,get 方法。*/
UserMapper.xml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.star.mapper.UserMapper">
<!-- 查询单条记录 -->
<select id="selectUserById" parameterType="int" resultType="User">
select * from user where id = #{id}
</select>
</mapper>
SpringConf.xml:
123 0454 04678942:
1 3 04;<## !#;# 4
3 304;<###55#=.>?;8 4
3 304;<## !#;# 34
3 04;<## !#;#4
3;>, 04
;<## !#;#
;<## !#;# # 8 853
;<## !#;#
;<## !#;## 8853
;<## !#;# 3
;<## !#;# 3# 8 38534:
1@88配置数据源 88:
1 04?4
04 !. ?4:
1 04AB4044#:
1 04404##;5C#4#: