摘要:
一、mapper映射的几种方式1、使用相对于类路径的资源引用<mappers> <mapper resource="org/mybatis/builder/AuthorMapper.xml"/></mappers> 2、使用完全限定资源定位符(URL)<mappers> <mapper url="f 阅读全文
posted @ 2021-03-08 18:20
landiss
阅读(99)
评论(0)
推荐(0)
摘要:
一、声明Bean的几种方式 1、xml 配置2、配置类中定义3、注解定义@Componet(@Controller @Service @Repository)4、import导入 ${}获取外部资源文件中的值#{}:el表达式 二、自动注入方式 1、setter属性注入2、构造器注入 xml中自动装 阅读全文
posted @ 2021-03-08 18:12
landiss
阅读(108)
评论(0)
推荐(0)
浙公网安备 33010602011771号