1. 程式人生 > >有關於IDEA的數據源問題

有關於IDEA的數據源問題

ring cto cti end con tor pom pri 新手上路

<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>1.3.2</version>
</dependency>

<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<scope>runtime</scope>
</dependency>

比如你的interface的Springboot項目中的pom.xml中
導入你另一個dao項目,當你的項目中導入了有mybits的話
後面寫的Service就不必導入dao項目
不然就會報錯

新手上路

有關於IDEA的數據源問題