A classloader proplem related to spring-boot-devtools

前端 未结 2 1152
夕颜
夕颜 2020-12-19 07:49

Background: Spring boot project, add goods and goods price list

Goods:
List pricelist;

in controller first convert goodsF

相关标签:
2条回答
  • 2020-12-19 08:24

    Dozer is using the wrong classloader.
    You can solve it adding this file in your resource folder :
    META-INF/spring-devtools.properties
    with inside :
    restart.include.dozer=/dozer-5.5.1.jar
    restart.include.dozer-spring=/dozer-spring-5.5.1.jar (only if you use this jar!)
    sources : http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#using-boot-devtools-customizing-classload

    0 讨论(0)
  • 2020-12-19 08:37

    The same has been asked here.

    You need to set the excludeDevTools to false

    0 讨论(0)
提交回复
热议问题