- 钉钉上下载的 eapp-corp-project-master 项目,在 SDK 14 环境下运行,报错
Caused by: java.lang.ClassNotFoundException: javax.xml.bind.ValidationException
默认情况下,Java SE中将不再包含java EE 的Jar包
而在 java 6/7 / 8 时关于这个API 都是捆绑在一起的
pom.xml 中增加依赖项
... <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-core</artifactId> <version>2.3.0</version> </dependency> <dependency> <groupId>javax.activation</groupId> <artifactId>activation</artifactId> <version>1.1.1</version> </dependency> </dependencies>
- devtools 热重载报错
SDK版本14,改成SDK1.8,做好配置后就可以了
Idea 配置方式参考:https://www.huangyuhong.cn/2020/03/spring-boot-%e5%b0%9d%e8%af%95/
参考: