Springboot Integrated Universal Mapper, hot load encountered classcastexception

Source: Internet
Author: User

  • 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.