[DS-3872] Move exlcusion of Spring's Velocity autoconfig to where the others are.

This commit is contained in:
Mark H. Wood
2019-06-24 17:15:41 -04:00
parent 17daf04f21
commit 03377c24bd
2 changed files with 4 additions and 2 deletions

View File

@@ -48,7 +48,7 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter
* @author Andrea Bollini (andrea.bollini at 4science.it)
* @author Tim Donohue
*/
@SpringBootApplication(exclude = VelocityAutoConfiguration.class)
@SpringBootApplication
public class Application extends SpringBootServletInitializer {
private static final Logger log = LoggerFactory.getLogger(Application.class);

View File

@@ -85,12 +85,14 @@ server.error.include-stacktrace = always
# * HibernateJpaAutoConfiguration (Hibernate ORM)
# * FlywayAutoConfiguration (Flyway migrations)
# * SolrAutoConfiguration (Solr)
# * Velocity (email templating)
#
# TODO: At some point we may want to investigate whether we can re-enable these and remove the custom DSpace init code
spring.autoconfigure.exclude=org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration, \
org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration, \
org.springframework.boot.autoconfigure.flyway.FlywayAutoConfiguration, \
org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration
org.springframework.boot.autoconfigure.solr.SolrAutoConfiguration, \
org.springframework.boot.autoconfigure.velocity.VelocityAutoConfiguration
#########################
# Spring Boot Logging levels