Skip to content

Commit 5f0dcc3

Browse files
committed
refactor: 调整依赖和包结构
1 parent fd0de60 commit 5f0dcc3

3 files changed

Lines changed: 13 additions & 13 deletions

File tree

simple-common/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,17 @@
3333
<groupId>com.github.xiaoymin</groupId>
3434
<artifactId>knife4j-spring-boot-starter</artifactId>
3535
</dependency>
36+
<!--引入 mybatis-->
37+
<dependency>
38+
<groupId>org.mybatis.spring.boot</groupId>
39+
<artifactId>mybatis-spring-boot-starter</artifactId>
40+
<version>2.2.0</version>
41+
</dependency>
42+
<!--引入 mysql 驱动-->
43+
<dependency>
44+
<groupId>mysql</groupId>
45+
<artifactId>mysql-connector-java</artifactId>
46+
<scope>runtime</scope>
47+
</dependency>
3648
</dependencies>
3749
</project>

simple-model/pom.xml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,5 @@
2222
<groupId>top.cadecode</groupId>
2323
<artifactId>simple-common</artifactId>
2424
</dependency>
25-
<!--引入 mybatis-->
26-
<!--<dependency>-->
27-
<!-- <groupId>org.mybatis.spring.boot</groupId>-->
28-
<!-- <artifactId>mybatis-spring-boot-starter</artifactId>-->
29-
<!-- <version>2.2.0</version>-->
30-
<!--</dependency>-->
31-
<!--引入 mysql 驱动-->
32-
<dependency>
33-
<groupId>mysql</groupId>
34-
<artifactId>mysql-connector-java</artifactId>
35-
<scope>runtime</scope>
36-
</dependency>
3725
</dependencies>
3826
</project>

simple-web/src/main/java/top/cadecode/web/controller/DemoController.java renamed to simple-web/src/main/java/top/cadecode/web/demo/controller/DemoController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package top.cadecode.web.controller;
1+
package top.cadecode.web.demo.controller;
22

33
import org.springframework.web.bind.annotation.PostMapping;
44
import org.springframework.web.bind.annotation.RequestMapping;

0 commit comments

Comments
 (0)