Shiro学习(二) 基于SpringBoot连接数据库与配置MyBatis

基于SpringBoot连接数据库与配置MyBatis

  1)创建User(用户)、Role(角色)、权限(permission)实体类,主要结构如下:

  

2)创建UserService接口实现根据用户name查找相应的用户信息

3)创建UserMapper.xml

4)配置mybaits信息

- -

猜你喜欢

转载自my.oschina.net/u/3345868/blog/1821888
今日推荐