配置mybatis
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
package top.fjy8018.shiro;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
@SpringBootApplication
|
||||
@ComponentScan
|
||||
@MapperScan(basePackages = {"top.fjy8018.shiro.mapper.UserMapper"})
|
||||
public class ShiroApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
@@ -4,4 +4,8 @@ spring:
|
||||
driver-class-name: com.mysql.jdbc.Driver
|
||||
url: jdbc:mysql://localhost:3306/db_imis2?useUnicode=true&characterEncoding=utf-8&useSSL=true
|
||||
username: trs
|
||||
password: shiro
|
||||
password: shiro
|
||||
## 配置mybatis ##
|
||||
mybatis:
|
||||
mapper-locations: mappers/*.xml
|
||||
type-aliases-package: top.fjy8018.shiro.dataobject
|
||||
|
||||
Reference in New Issue
Block a user