有关于IDEA的数据源问题

<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项目
不然就会报错

新手上路

猜你喜欢

转载自www.cnblogs.com/lzl-/p/10254461.html