- bug description
The use of Springboot,mybatis in the project, in order to improve the development efficiency, integration of common Mapper, and thermal records.
<!--hot load-<dependency> <groupid>org.springframework.boot</group id> <artifactId>spring-boot-devtools</artifactId> <optional>true </optional> <scope>true </scope> </dependency> <!--third-party mapper build, simplify development--<dependency> <GROUPID>TK.MYBATIS< ;/groupid> <artifactId>mapper-spring-boot-starter</artifactId> <version>${mappe R.spring-boot.version}</version> </dependency>
But when I comment out Spring-boot-devtools won't appear ClassCastException The question is very strange.
- Solution Solutions
under the Resources folder of the project, create a new meta-inf folder, in the new spring-devtools.properties file, add the file inside restart.include.companycommonlibs=tk/mybatis.*
Testing the perfect solution to the problem
Springboot Integrated Universal Mapper, hot load encountered classcastexception