feat: 使用串行编译,以兼容java17
This commit is contained in:
parent
96aa81d9b9
commit
ec0c1afef7
@ -36,4 +36,10 @@ public class AESEncryptablePropertyResolver implements EncryptablePropertyResolv
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
AESEncryptablePropertyResolver resolver = new AESEncryptablePropertyResolver("sxu-service-2020");
|
||||
String value = resolver.resolvePropertyValue("$-dcfe1dbfdf51e1b007c68c6c0b7008c774ed7c05d8aca2797562159ac1098bcc5a9fdcb42e6acb6562944c21969d34a2");
|
||||
System.out.println(value);
|
||||
}
|
||||
}
|
||||
|
@ -114,7 +114,7 @@ public class RestBeanAutoConfigure implements ImportBeanDefinitionRegistrar, Res
|
||||
*/
|
||||
private Map<RestBeanCandidate, List<String>> compile(String basePackage, Set<Class<?>> classes) {
|
||||
Map<RestBeanCandidate, List<String>> compiled = new ConcurrentHashMap<>();
|
||||
classes.parallelStream().forEach(clazz -> {
|
||||
classes.forEach(clazz -> {
|
||||
RestBean restBean = clazz.getDeclaredAnnotation(RestBean.class);
|
||||
if (null != restBean) {
|
||||
// 注册bean信息
|
||||
@ -144,7 +144,7 @@ public class RestBeanAutoConfigure implements ImportBeanDefinitionRegistrar, Res
|
||||
} catch (IOException e) {
|
||||
log.error("编译{}时发生异常!", source.getClassName(), e);
|
||||
} catch (Exception e) {
|
||||
log.error("编译{}警告!{}", source.getClassName(), e.getMessage());
|
||||
log.error("编译{}警告!{}", source.getClassName(), e.getMessage(), e);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user