摘要:
属性(properties) 通过properties的子元素设置配置项: <properties> <property name="driver" value="com.mysql.cj.jdbc.Driver"/> <property name="url" value="jdbc:mysql:/ 阅读全文
posted @ 2021-03-09 10:00
ttpfx
阅读(99)
评论(0)
推荐(0)
摘要:
第一种解决方法:在sql中使用别名 <select id="getRoleList" resultType="com.ttpfx.domain.Role"> select ID as id, ROLE_NAME as name, ROLE_DESC as description from role; 阅读全文
posted @ 2021-03-08 11:21
ttpfx
阅读(84)
评论(0)
推荐(0)
摘要:
Dao接口 package com.ttpfx.dao; import com.ttpfx.domain.User; import java.util.List; public interface UserDao { List<User> getAll(); List<User> getUserLi 阅读全文
posted @ 2021-03-04 17:09
ttpfx
阅读(52)
评论(0)
推荐(0)
摘要:
1.创建空的Java工程,安装MyBatis依赖 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/X 阅读全文
posted @ 2021-03-04 14:27
ttpfx
阅读(85)
评论(0)
推荐(0)
浙公网安备 33010602011771号