{"id":2274,"date":"2019-12-08T17:03:34","date_gmt":"2019-12-08T17:03:34","guid":{"rendered":"http:\/\/salientsoft.co.uk\/?p=2274"},"modified":"2019-12-08T17:04:02","modified_gmt":"2019-12-08T17:04:02","slug":"spring-tools-suite-shows-inconsistent-warnings-re-applications-properties-entries","status":"publish","type":"post","link":"https:\/\/salientsoft.co.uk\/?p=2274","title":{"rendered":"Spring Tools Suite shows inconsistent warnings re applications.properties entries."},"content":{"rendered":"<p>STS tries to warn you when editing <strong><em>application.properties<\/em><\/strong>, if any properties do not match your configuration classes.<\/p>\n<p>Unfortunately it sometimes gets out of step and does not give correct warnings.<\/p>\n<p>I had a few intermittent instances of this which were cleared by refreshing\/rebuilding\/reloading.<\/p>\n<p>However one persistent one was that whilst Spring Boot was happy with the <em><strong>map[key]<\/strong><\/em> syntax for specifying a property for a map entry, the IDE continued to give a warning on this.<\/p>\n<p>In the end I could not resolve this, but using the <strong><em>map.key <\/em><\/strong>syntax instead was fine and the IDE was happy with this and did not give warnings.<\/p>\n<p>The only real need for the [] syntax would be to support keys with special characters in like \u201c.\u201d, but in my case this was not an issue and I would normally avoid this anyway if at all possible.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>STS tries to warn you when editing application.properties, if any properties do not match your configuration classes. Unfortunately it sometimes gets out of step and does not give correct warnings. I had a few intermittent instances of this which were cleared by refreshing\/rebuilding\/reloading. However one persistent one was that whilst Spring Boot was happy with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[95,219],"tags":[94,221],"_links":{"self":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2274"}],"collection":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2274"}],"version-history":[{"count":2,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2274\/revisions"}],"predecessor-version":[{"id":2276,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/2274\/revisions\/2276"}],"wp:attachment":[{"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/salientsoft.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}