摘要:
1.在ssm的整合项目中,首先导入相关的依赖,编写好数据库,然后创建mybatis的核心配置文件 创建database.properties连接数据库,和applicationContext文件来统一管理spring配置文件 然后到pojo对应变斜数据库中的实体类,注意实体类中的的名称迎合数据库中的 阅读全文
posted @ 2021-11-24 21:25
KingCae
阅读(38)
评论(0)
推荐(0)
摘要:
MyBatis地址:https://github.com/mybatis/mybatis-3/releases Mybatis中文文档:https://mybatis.org/mybatis-3/zh/index.html Mybatis Maven 仓库:https://mvnrepository 阅读全文
posted @ 2021-11-24 21:24
KingCae
阅读(44)
评论(0)
推荐(0)
摘要:
官网 : http://spring.io/ 官方下载地址 : https://repo.spring.io/libs-release-local/org/springframework/spring/ GitHub : https://github.com/spring-projects Spri 阅读全文
posted @ 2021-11-24 21:23
KingCae
阅读(34)
评论(0)
推荐(0)
摘要:
@Autowired与@Resource异同: 1、@Autowired与@Resource都可以用来装配bean。都可以写在字段上,或写在setter方法上。 2、@Autowired默认按类型装配(属于spring规范),默认情况下必须要求依赖对象必须存在,如果要允许null 值,可以设置它的r 阅读全文
posted @ 2021-11-24 21:23
KingCae
阅读(33)
评论(0)
推荐(0)

浙公网安备 33010602011771号