finos / spring-bot

Spring Boot + Java Integration for Symphony/Teams Chat Platform Bots and Apps
https://springbot.finos.org
Apache License 2.0
60 stars 35 forks source link

Devtools Causes Two Versions of User's Classes To Be Loaded #240

Closed robmoffat closed 7 months ago

robmoffat commented 2 years ago

Due to this issue:

https://github.com/spring-projects/spring-boot/issues/3316

We end up with different classes loaded from AppClassLoader and RestartClassLoader.

I don't understand why FormConverter and EntityJsonConverter use different class loaders

robmoffat commented 7 months ago

Original issue was closed, further discussion happens here: https://github.com/spring-projects/spring-boot/issues/34237

The issue now has documentation in spring, here: https://docs.spring.io/spring-boot/docs/1.5.16.RELEASE/reference/html/using-boot-devtools.html#using-boot-devtools-customizing-classload

So you can modify the way the RestartClassLoader works and get it to exclude spring-bot.