• Dave Syer's avatar
    Make Thymeleaf @ConditionalOnWebApplication · 304920df
    Dave Syer authored
    If user creates a Thymeleaf app with a parent-child context then the
    child should contain all the web-specific pieces (and they are likely
    to fail fast if they need to be ServletContextAware, or slower if they
    try to locate a WebApplicationContext at runtime). This can't happen
    if the view resolver is being added to the parent.
    
    Freemarker and Velocity already have similar tests because it is assumed
    that they should be usable outside a web app, so this change just does the
    same for Thymeleaf.
    
    Fixes gh-1611
    304920df
Name
Last commit
Last update
..
META-INF Loading commit data...
custom-templates Loading commit data...
db Loading commit data...
org/springframework/boot/autoconfigure Loading commit data...
templates Loading commit data...
test Loading commit data...
application-switch-messages.properties Loading commit data...
application.properties Loading commit data...
city.sql Loading commit data...
data.sql Loading commit data...
early-init-test.xml Loading commit data...
schema.sql Loading commit data...
switch-messages.properties Loading commit data...