zmd50 4 years ago
parent 386950e265
commit 6da5e5e1c4

@ -15,10 +15,10 @@ public interface UserMapper {
@Select("select * from user where username=#{username}") @Select("select * from user where username=#{username}")
User queryUserByusername(String username); User queryUserByusername(String username);
@Insert("insert into user values(#{username},#{password},#{kind})") @Insert("insert into user values(#{username},#{password},0)")
int InsertUser(User user); int InsertUser(User user);
@Delete("delete from user where username=#{username}") @Delete("delete from user where username=#{username}")
int deleteUserByName(String username); int deleteUserByName(String username);
@Select("select * from user") @Select("select * from user where userstatus=0")
User[] queryAllUser(); User[] queryAllUser();
} }

@ -1,6 +1,6 @@
server.port=8090 server.port=8090
spring.datasource.url=jdbc:mysql://localhost:3306/test02?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8 spring.datasource.url=jdbc:mysql://localhost:3306/bookstore?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf-8
spring.datasource.username=root spring.datasource.username=root
spring.datasource.password=root spring.datasource.password=root

Loading…
Cancel
Save