[After resolving]springboot added Dev-tools, run the program error unenhance strategy

Source: Internet
Author: User


Occurrence condition:
Increase the dependency of dev-tools in Pom.xml, after the program starts, the calling program interface error

Problem phenomenon:
-------------------------------------------------------------Registered concrete Types:5(Approximate size:630.7KB) [InterfaceJava.util.Collection]: arraylist<object>  [InterfaceJAVA.UTIL.MAP]: Linkedhashmap<object, object>  [InterfaceJava.util.map$entry]: Mapentry<object, object>  [InterfaceJava.util.Set]: linkedhashset<object>  [InterfaceJava.util.List]: arraylist<object>-------------------------------------------------------------Resolved Strategies:1(Approximate size: the,825.6KB) {source:apporganization, dest:apporganizationdto,inch-place:false}: Instantiateandusecustommapperstrategy<apporganization, apporganizationdto> {customMapper: [email protected ], unenhancer: [email protected], objectfactory:defaultconstructorobjectfactory<apporganizationdto>}-------------------------------------------------------------unenhance Strategy: [email protected]-----End dump of current state-------------------------------At ma.glasnost.orika.impl.ExceptionUtility.newMappingException (Exceptionutility.java: -) at Ma.glasnost.orika.impl.MapperFacadeImpl.map (Mapperfacadeimpl.java:752) at Ma.glasnost.orika.impl.MapperFacadeImpl.map (Mapperfacadeimpl.java:721)

Cause of the problem:
Looks like a Orika bug.

Solution:
(Refer to Https://stackoverflow.com/questions/33324944/orika-classcastexception-in-spring-boot-webapp):
    1. Create a META-INF folder in src/main/resources .
    2. Create spring-devtools.properties file in it.
    3. Add to the restart.include.orika=/orika-core.*\.jar file.

  

[After resolving]springboot added Dev-tools, run the program error unenhance strategy

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.