diff --git a/pom.xml b/pom.xml index 3e26168..e97e85c 100644 --- a/pom.xml +++ b/pom.xml @@ -50,6 +50,11 @@ spring-boot-starter-test test + + com.baomidou + mybatis-plus-boot-starter + 3.5.5 + diff --git a/src/main/java/com/supervision/ai/service/hub/AiServiceHubApplication.java b/src/main/java/com/supervision/ai/service/hub/AiServiceHubApplication.java index edcdfac..5ed5fca 100644 --- a/src/main/java/com/supervision/ai/service/hub/AiServiceHubApplication.java +++ b/src/main/java/com/supervision/ai/service/hub/AiServiceHubApplication.java @@ -1,8 +1,10 @@ package com.supervision.ai.service.hub; +import org.mybatis.spring.annotation.MapperScan; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +@MapperScan(basePackages = {"com.supervision.ai.service.hub.mapper"}) @SpringBootApplication public class AiServiceHubApplication { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties deleted file mode 100644 index bcf1abe..0000000 --- a/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ -spring.application.name=ai-service-hub diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml new file mode 100644 index 0000000..1263201 --- /dev/null +++ b/src/main/resources/application.yml @@ -0,0 +1,16 @@ +spring: + application: + name: ai-service-hub + datasource: + url: jdbc:postgresql://192.168.10.137:15432/ai-service-hub + username: postgres + password: 123456 + driver-class-name: org.postgresql.Driver +server: + port: 9901 + servlet: + context-path: /ai-service-hub +mybatis-plus: + mapper-locations: classpath*:mapper/*.xml + configuration: + log-impl: org.apache.ibatis.logging.stdout.StdOutImpl