Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

配置Maper后,影响Spring boot 的 Datasource #149

Open
EtachGu opened this issue Jan 2, 2019 · 1 comment
Open

配置Maper后,影响Spring boot 的 Datasource #149

EtachGu opened this issue Jan 2, 2019 · 1 comment

Comments

@EtachGu
Copy link

EtachGu commented Jan 2, 2019

application.properties

spring.datasource.url=jdbc:mysql://localhost:3306/test
spring.datasource.username=root
spring.datasource.password=123

某java文件

 @Autowired
 private DataSource dataSource;

MySQL Datasource: HikariDataSource (null)

@yinlijing
Copy link

注意@MapperScan要使用 tk.mybatis.spring.annotation.MapperScan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants