- 博客(4)
- 收藏
- 关注
原创 Druid连接池连接数据库
1. Mysql数据库创建 新建一个info数据库 create database info; 新建student表 Create table student( id int primary key auto_increment, name varchar(32) nut null, age int nut null, course varchar(32) nut null ); 插入数据 insert into student(name, age,
2021-07-04 15:58:48 177
原创 SpringMVC入门案例
1. SpringMVC的入门程序 1. 创建maven-WEB工程,在pom.xml中引入开发的jar包 pom.xml: <!-- 版本锁定 --> <properties> <spring.version>5.0.2.RELEASE</spring.version> </properties> <dependencies> <dependency> <groupId>org.spring
2021-07-04 09:40:04 124
原创 JDBC连接数据库
JDBC连接数据库 1.Mysql数据库创建 新建数据库-info create database info; 新建student表 create table student( id int primary key auto_increment, name varchar(32) nut null, age int nut null, course varchar(32) nut null ); 插入数据 insert into student(na
2021-06-29 19:03:30 152
原创 Could not find resource mybatis-config.xml解决办法
使用mybatis进行配置,在工具类中获取sqlSession对象,写一个main方法进行测试时显示错误: Could not find resource mybatis-congig.xml 数据显示为 null 检查错误行,25,39 显示没有获取到sqlSession对象 看代码在引入mybits配置文件时路径是否正确 与配置文件进行对比,发现配置文件名不小心写错 修改后再次进行测试,获取到对象,显示数据,解决! ...
2021-06-27 10:24:28 311
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人