Split auto-configuration out into several smaller, more focused modules #37599
Labels
status: pending-design-work
Needs design work before any code can be developed
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
At the moment, various templating libraries, are integrated with Spring in the following way:
The problem is that templating libraries can be pulled in for reasons other than for templating HTTP views. For example, I imagine a very common use case would be for templating emails. When this is done, one must remember to also set the disabled property or else warnings can be shown at startup and unexpected problems can occur like this one.
One way I can see that this behavior could be improved is by moving the auto-configuration for these libraries out of spring-boot-autoconfigure and into the starters instead. So
spring-boot-starter-mustache
would also pull in the mustache auto-configuration. Perhaps the starter should also make it more clear that it is supposed to be for web templating only e.g.spring-boot-starter-web-mustache
. If this were done then:disabled
properties would be come redundant and could be removedThis also means that if the templating library arrives on the classpath as a transitive dependency, the application author no longer needs to explicitly disable the auto-configuration integrating it into the web tier.
The text was updated successfully, but these errors were encountered: