title: Spring Boot not using application.properties for spring.groovy.template.cache
body: <p>I have a very simple Spring Boot application with classes detailed below. </p>
  
  <p>My problem is with the application.properties file and how they get auto-configured. I'm trying to get Groovy Templates to update in dev by setting 'spring.groovy.template.cache: false', however this is not working. I added two more properties to see if the application.properties file was being read. The 'logging.level.org.springframework.web: ERROR' still results in INFO level messages printed to the console. However, some.prop is read correctly into the MyBean class on application start. </p>
  
  <p>Is there a configuration declaration I'm missing for these properties? </p>
  
  <p>src/main/resources/application.properties: </p>
  
  <pre><code>spring.groovy.template.cache: false
  logging.level.org.springframework.web: ERROR
  some.prop: bob
  </code></pre>
  
  <p>src/main/java/sample/MyBean.java:</p>
  
  <pre><code>@Component
  public class MyBean {
  
      @Value("${some.prop}")
      private String prop;
  
      public MyBean() {}
  
      @PostConstruct
      public void init() {
          System.out.println("================== " + prop + "================== ");
      }
  }
  </code></pre>
  
  <p>and src/main/java/sample/Application.java:</p>
  
  <pre><code>@SpringBootApplication
  public class Application {
  
      public static void main(String[] args) {
          SpringApplication.run(Application.class, args);
      }
  }
  </code></pre>
  
  <p>and src/main/java/sample/com/example/MainController.java</p>
  
  <pre><code>@Controller
  public class MainController {
  
      @RequestMapping(value="/login", method = RequestMethod.GET)
      public ModelAndView risk(@RequestParam Optional&lt;String&gt; error) {
          return new ModelAndView("views/login", "error", error);
      }
  
  }
  </code></pre>