使用资料:
https://blog.csdn.net/weixin_42747657/article/details/81160501
1,mysql 2,tomcat 3,idea 4,spring
5,springmvc 6,springmvc 7,mybatis 8,maven
步骤:
1,建立数据库
JDBC---执行流程--》bean-->dao-->service--->controller-->页面
执行流程:页面----》controller-----》service----->dao--->bean
建立表
2,用maven创建项目
三
三,导包
pom.xml 修改文件
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<!-- spring版本号 -->
<spring.version>5.0.2.RELEASE</spring.version>
<!-- mybatis版本号 -->
<mybatis.version>3.2.6</mybatis.version>
<!-- log4j日志文件管理包版本 -->
<slf4j.version>1.7.7</slf4j.version>
<log4j.version>1.2.17</log4j.version>
<c3p0.version>0.9.5.2</c3p0.version>
<taglibs.version>1.1.2</taglibs.version>
</properties>
<dependencies>
<!-- spring核心包 -->
<dependency>
<