我的Springboot应用程序(2.3.0)一直运行得很顺利,直到引入了这个Jasypt依赖:
<dependency>
<groupId>com.github.ulisesbocchio</groupId>
<artifactId>jasypt-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>然后,唯一的更改是将我的application.properties中的纯文本密码替换为ENC(*):
datasource.password=ENC(*************************************)如何提高性能?过去在毫秒内加载的应用程序页面现在需要4-5秒才能加载。
发布于 2020-12-18 19:15:38
我采用了jasypt源代码,并替换了一行代码以简单地返回false。
这就是jasypt源代码中导致速度慢的那一行: RefreshScopeRefreshedEventListener.java
boolean isAssignable(String className, Object value) {
try {
return ClassUtils.isAssignableValue(ClassUtils.forName(className, null),value);
}...https://stackoverflow.com/questions/64613634
复制相似问题