Add support for custom ProtocolResolver with Devtools
Prior to this commit, custom `ProtocolResolvers` set on the `ApplicationContext` were lost when Devtools is used as the customized `ResourceLoader` did not copy any customization made to the default resource loader. This commit makes sure to copy any `ProtocolResolver` set on the context. Closes gh-9331
This commit is contained in:
@@ -853,6 +853,10 @@ NOTE: When deciding if an entry on the classpath should trigger a restart when i
|
||||
DevTools automatically ignores projects named `spring-boot`, `spring-boot-devtools`,
|
||||
`spring-boot-autoconfigure`, `spring-boot-actuator`, and `spring-boot-starter`.
|
||||
|
||||
NOTE: DevTools needs to customize the `ResourceLoader` used by the `ApplicationContext`:
|
||||
if your application provides one already, it is going to be wrapped. Direct override of
|
||||
the `getResource` method on the `ApplicationContext` is not supported.
|
||||
|
||||
[[using-spring-boot-restart-vs-reload]]
|
||||
.Restart vs Reload
|
||||
****
|
||||
|
||||
Reference in New Issue
Block a user