修改代码逻辑

master
bynt 3 years ago
parent 304cfee014
commit b4df777ca1

@ -7,7 +7,7 @@ spring:
enabled: true enabled: true
routes: routes:
- id: platform-management - id: platform-management
uri: lb://ad-platform-managements uri: lb://ad-platform-management
predicates: predicates:
- Path=/api-management/** - Path=/api-management/**
filters: filters:

@ -60,7 +60,7 @@ public class UserDetailsServiceImpl implements UserDetailsService {
static final Map<String, Future<JwtUserDto>> USER_DTO_CACHE = new ConcurrentHashMap<>(); static final Map<String, Future<JwtUserDto>> USER_DTO_CACHE = new ConcurrentHashMap<>();
public static ExecutorService executor = newThreadPool(); public static ExecutorService executor = newThreadPool();
@SneakyThrows
@Override @Override
public JwtUserDto loadUserByUsername(String username) { public JwtUserDto loadUserByUsername(String username) {
JwtUserDto jwtUserDto = null; JwtUserDto jwtUserDto = null;

@ -3,7 +3,7 @@ server:
spring: spring:
application: application:
name: ad-platform-managements name: @artifactId@
freemarker: freemarker:
check-template-location: false check-template-location: false
profiles: profiles:
@ -25,6 +25,7 @@ spring:
properties: properties:
hibernate: hibernate:
dialect: org.hibernate.dialect.MySQL5InnoDBDialect dialect: org.hibernate.dialect.MySQL5InnoDBDialect
enable_lazy_load_no_trans: true
task: task:
pool: pool:

Loading…
Cancel
Save