diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/UserController.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/UserController.java index f54802628e..824d8a8405 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/UserController.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/UserController.java @@ -2,7 +2,7 @@ package io.metersphere.system.controller; import io.metersphere.domain.User; -import io.metersphere.system.service.UserService; +import io.metersphere.sdk.UserService; import jakarta.annotation.Resource; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserService.java b/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserService.java deleted file mode 100644 index b852f90978..0000000000 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/service/UserService.java +++ /dev/null @@ -1,11 +0,0 @@ -package io.metersphere.system.service; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import io.metersphere.domain.User; -import io.metersphere.sdk.mapper.UserMapper; -import org.springframework.stereotype.Service; - -@Service -public class UserService extends ServiceImpl { - -} diff --git a/backend/services/system-setting/src/test/java/io/metersphere/system/Application.java b/backend/services/system-setting/src/test/java/io/metersphere/system/Application.java index fa63330927..fe637012f5 100644 --- a/backend/services/system-setting/src/test/java/io/metersphere/system/Application.java +++ b/backend/services/system-setting/src/test/java/io/metersphere/system/Application.java @@ -7,6 +7,7 @@ import org.springframework.boot.autoconfigure.ldap.LdapAutoConfiguration; import org.springframework.boot.autoconfigure.neo4j.Neo4jAutoConfiguration; import org.springframework.boot.autoconfigure.quartz.QuartzAutoConfiguration; import org.springframework.boot.web.servlet.ServletComponentScan; +import org.springframework.context.annotation.ComponentScan; @SpringBootApplication(exclude = { QuartzAutoConfiguration.class, @@ -15,6 +16,7 @@ import org.springframework.boot.web.servlet.ServletComponentScan; MybatisAutoConfiguration.class }) @ServletComponentScan +@ComponentScan(basePackages = {"io.metersphere.sdk", "io.metersphere.system"}) public class Application { public static void main(String[] args) { diff --git a/pom.xml b/pom.xml index 7afc43e09b..f2943a7555 100644 --- a/pom.xml +++ b/pom.xml @@ -93,7 +93,7 @@ false 2.9.0 - 0.8.7 + 0.8.10