{"id":25954,"date":"2017-08-24T07:55:59","date_gmt":"2017-08-24T07:55:59","guid":{"rendered":"https:\/\/blog.jetbrains.com\/idea\/?p=15765"},"modified":"2017-08-24T07:55:59","modified_gmt":"2017-08-24T07:55:59","slug":"intellij-idea-2017-2-spring-boot-improvements","status":"publish","type":"idea","link":"https:\/\/blog.jetbrains.com\/pt-br\/idea\/2017\/08\/intellij-idea-2017-2-spring-boot-improvements","title":{"rendered":"IntelliJ IDEA 2017.2: Spring Boot Improvements"},"content":{"rendered":"<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/klRZJ6SxvmU\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h2><span style=\"font-weight: 400;\">Endpoints Tab<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">The Run\/Debug tool windows for Spring Boot applications now contain an Endpoints tab which will include information retrieved from the application&#8217;s actuator endpoints Beans, Health, and Mapping. \u2018spring-boot-starter-actuator\u2019 must be added as a dependency to the application to enable these endpoints. The Spring Boot Run\/Debug configuration option \u2018Enable JMX agent\u2019 must be also enabled in order to make new Endpoints tab appear.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Initializr<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">For Gradle-based projects: issues with automatic setup for have been fixed, and a run configuration can now be created automatically as well (see Application Settings below).<\/span><\/p>\n<h2>Configuration Files<\/h2>\n<p><span style=\"font-weight: 400;\">Support for custom configuration files is now available. To define a custom <\/span><i><span style=\"font-weight: 400;\">spring.config.name<\/span><\/i><span style=\"font-weight: 400;\">, select the Spring Boot fileset under Facets (in the Project Structure) and open the customization dialog via toolbar button:<\/span><\/p>\n<p><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2017\/08\/idea-custom-app-properties.gif\" rel=\"attachment wp-att-15767\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-15767\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2017\/08\/idea-custom-app-properties.gif\" alt=\"Adding a custom-named application properties file\" width=\"1280\" height=\"720\" \/><\/a><\/p>\n<p><span style=\"font-weight: 400;\">You can also add (additional) configuration files via \u201c+\u201d button. Any <em>bootstrap.*<\/em> files that are found are always added automatically.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Completion for configuration keys has been improved: keys referring to types not on the classpath (e.g. database specific keys) are shown at the bottom of the completion list,, \u201clocal\u201d keys defined in <em>additional-config.json<\/em> are at the top.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">In Spring Boot 1.5, an additional \u201clevel\u201d (warning\/error) for denoting deprecation status of configuration keys was added. This is now fully supported in IntelliJ IDEA and highlighted accordingly in configuration files and documentation.\u00a0<\/span><\/p>\n<p><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2017\/08\/idea-deprecation-highlighting-2.png\" rel=\"attachment wp-att-15769\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-15769\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2017\/08\/idea-deprecation-highlighting-2.png\" alt=\"Deprecation highlighting\" width=\"1280\" height=\"309\" \/><\/a><\/p>\n<h2><span style=\"font-weight: 400;\">Auto-Configuration<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Detected auto-configuration classes are now sorted according to <code>@AutoConfigureOrder<\/code> and <code>@AutoConfigureAfter<\/code>|<code>Before<\/code>. For <code>@ConditionalOnProperty<\/code> the actual configuration key values will now be evaluated so IntelliJ IDEA will be able to more correctly evaluate autoconfigured Spring Beans in the code.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Banner Files<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">If you have a custom banner file that doesn&#8217;t have the standard <em>banner.txt<\/em> name and your configuration includes the <em>banner.location<\/em> setting, it is fully recognised and will offer code highlighting and completion.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Application Settings<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Finally, the Spring Boot application settings are easier to find. They&#8217;ve been grouped together under a new Spring Boot section in Languages and Frameworks. \u00a0As mentioned earlier, now the &#8220;Create Run Configuration automatically&#8221; setting applies to Gradle as well as Maven.<\/span><\/p>\n<p><a href=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2017\/08\/idea-spring-boot-application-settings.png\" rel=\"attachment wp-att-15766\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-15766\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2017\/08\/idea-spring-boot-application-settings.png\" alt=\"Spring Boot application settings\" width=\"1049\" height=\"642\" \/><\/a><\/p>\n","protected":false},"author":360,"featured_media":0,"comment_status":"open","ping_status":"open","template":"","categories":[808],"tags":[673,3211],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/idea\/25954"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/idea"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/types\/idea"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/users\/360"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/comments?post=25954"}],"version-history":[{"count":0,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/idea\/25954\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/media?parent=25954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/categories?post=25954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/tags?post=25954"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/cross-post-tag?post=25954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}