🐛 找不到模块问题
This commit is contained in:
parent
f697da1666
commit
fdbf72fe02
|
@ -9,8 +9,8 @@ import org.springframework.context.annotation.Bean;
|
||||||
import org.springframework.context.annotation.Configuration;
|
import org.springframework.context.annotation.Configuration;
|
||||||
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
import org.springframework.transaction.annotation.EnableTransactionManagement;
|
||||||
|
|
||||||
@EnableTransactionManagement
|
|
||||||
@Configuration
|
@Configuration
|
||||||
|
@EnableTransactionManagement
|
||||||
public class MybatisPlusConfig {
|
public class MybatisPlusConfig {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -22,7 +22,6 @@ import java.util.stream.Collectors;
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
public class DbUserDetailService implements UserDetailsService {
|
public class DbUserDetailService implements UserDetailsService {
|
||||||
|
|
||||||
// TODO 找不到UserMapper
|
|
||||||
private final UserMapper userMapper;
|
private final UserMapper userMapper;
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -1,10 +1,12 @@
|
||||||
package com.auth.service.base;
|
package com.auth.service.base;
|
||||||
|
|
||||||
|
import org.mybatis.spring.annotation.MapperScan;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
import org.springframework.context.annotation.ComponentScan;
|
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
|
@SpringBootApplication
|
||||||
public class ServiceBaseMainApplication {
|
public class ServiceBaseMainApplication {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
|
|
|
@ -44,7 +44,7 @@ public class Knife4jConfig {
|
||||||
|
|
||||||
@Bean
|
@Bean
|
||||||
public GroupedOpenApi security() {
|
public GroupedOpenApi security() {
|
||||||
return GroupedOpenApi.builder().group("基础模块接口").pathsToMatch("/api/base/**").build();
|
return GroupedOpenApi.builder().group("基础模块v1接口").pathsToMatch("/api/v1/**").build();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue