SpringBoot 1.5.10, the project starts with two errors
1.@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
2.Log Warning: Exception in thread “main” java.lang.ClassCastException: class jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to class java.net.URLClassLoader (jdk.internal.loader.ClassLoaders$AppClassLoader and java.net.URLClassLoader are in module java.base of loader ‘bootstrap’)
Details are as follows:
Reason: The pom file has added dependencies such as deployment of.
|
Solution:
1: remove this dependency, but the project hot deployment function will no longer be supported
2: upgrade springboot version to 2. X version
Similar Posts:
- Exception in thread “main” java.lang.ClassCastException
- [Solved] Springboot integrate swagger Error: failed to start bean ‘documentationpluginsboot
- [Solved] java.lang.NoClassDefFoundError: net/sf/jsqlparser/expression/Expression
- Hibernate Exception: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
- Springboot always reports an error when importing JSP dependencies
- IDEA error: javax/xml/bind/DatatypeConverter [How to Solve]
- [Solved] Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses
- [Solved] Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses
- Springboot is compatible with jackson.databind and reports errors [How to Solve]
- [Solved] SparkSQL Error: org.apache.hadoop.security.HadoopKerberosName.setRuleMechanism