Commit 8e6a6980 authored by daniel's avatar daniel

feat(pom): org.apache.commons.lang 工具包冲突+1

parent 4adda051
......@@ -157,6 +157,12 @@
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
</dependency>
<!-- 固定 commons-lang 版本,防止并发类加载竞争 -->
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.6</version>
</dependency>
<!-- GENERAL UTILS begin -->
<dependency>
<groupId>commons-io</groupId>
......
......@@ -64,6 +64,11 @@ public class Application extends SpringBootServletInitializer {
}
public static void main(String[] args) {
// 预加载 commons-lang,防止并发类加载竞争导致 AssertionError
try {
Class.forName("org.apache.commons.lang.StringUtils");
} catch (ClassNotFoundException ignored) {
}
SpringApplication.run(Application.class, args);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment