<%@ page contentType=“text/html;charset=UTF-8” language=“java” %>
保存账户信息表单
用户名称
账户金额
[](()10. 编写列表页面
<c:forEach items=“${accountList}” var=“account”>
${account.id} ${account.name} ${account.money}</c:forEach>
[](()11. 编写相应配置文件(文件参考目录:素材/配置文件)
-
Spring配置文件:
applicationContext.xml
-
SprngMVC配置文件:
spring-mvc.xml
-
MyBatis映射文件:
AccountMapper.xml
-
MyBatis核心文件:
sqlMapConfig.xml
-
数据库连接信息文件:
jdbc.properties
-
Web.xml文件:
web.xml
-
日志文件:
log4j.properties
- jdbc.properties:存储数据库连接信息
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/test?useUnicode=true & characterEncoding=UTF-8 & serverTimezone=Asia/Shanghai
jdbc.username=root
jdbc.password=131415
- log4j.properties:日志记录