12 2021 档案

摘要:使用Map封装 mybatis <update id="testModify"> update testTable <trim prefix="set (" suffix=")" sufiixOverrides=","> <if test="name != null">name = #{name}, 阅读全文
posted @ 2021-12-31 11:04 super970216 阅读(176) 评论(0) 推荐(0)
摘要:@Autowired和@Resource都可以用于标记自动装配,作用一样但有些区别。 @Autowired默认按类型匹配 但这样通过@Autowired有可能找到多个同类型的bean,在这种情况下可以使用@Qualifier注解来找到要装配的bean,例如 @Autowired(require = 阅读全文
posted @ 2021-12-31 09:57 super970216 阅读(739) 评论(0) 推荐(0)