We've noticed that many applications are not using the validation features in web applications, while validator libraries on the classpath come with a cost.
We could do the following:
- remove the
spring-boot-starter-validation dependency from spring-boot-starter-web and spring-boot-starter-webflux
- create a new
spring-boot-starter-validation-web that brings in the validation dependencies without the tomcat-embed-el which is currently excluded by the web starters
- properly document that change in the release notes and the reference docs
We've noticed that many applications are not using the validation features in web applications, while validator libraries on the classpath come with a cost.
We could do the following:
spring-boot-starter-validationdependency fromspring-boot-starter-webandspring-boot-starter-webfluxspring-boot-starter-validation-webthat brings in the validation dependencies without thetomcat-embed-elwhich is currently excluded by the web starters