🐛 找不到模块问题

This commit is contained in:
bunny 2025-07-18 00:37:26 +08:00
parent f697da1666
commit fdbf72fe02
5 changed files with 18662 additions and 17979 deletions

View File

@ -9,8 +9,8 @@ import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
@Configuration
@EnableTransactionManagement
public class MybatisPlusConfig {
@Bean

View File

@ -22,7 +22,6 @@ import java.util.stream.Collectors;
@RequiredArgsConstructor
public class DbUserDetailService implements UserDetailsService {
// TODO 找不到UserMapper
private final UserMapper userMapper;
@Override

View File

@ -1,10 +1,12 @@
package com.auth.service.base;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
@ComponentScan(basePackages = {"com.auth.dao", "com.auth.module"})
@MapperScan(basePackages = "com.auth.dao.*.mapper")
@ComponentScan(basePackages = {"com.auth.service.base", "com.auth.dao", "com.auth.module"})
@SpringBootApplication
public class ServiceBaseMainApplication {
public static void main(String[] args) {

View File

@ -44,7 +44,7 @@ public class Knife4jConfig {
@Bean
public GroupedOpenApi security() {
return GroupedOpenApi.builder().group("基础模块接口").pathsToMatch("/api/base/**").build();
return GroupedOpenApi.builder().group("基础模块v1接口").pathsToMatch("/api/v1/**").build();
}
}