NB-SpringBoot
NetBeans IDE plugin supporting programming with Spring Boot.
Requirements and Installation
This plugin requires NetBeans 8.1 or above running on JDK 7 or above.
The plugin is available in the Plugin Portal Update Center thus it can be downloaded and installed trough Tools > Plugins > Available Plugins.
Alternatively download the desired nbm
package from https://github.com/AlexFalappa/nb-springboot/releases , go to Tools > Plugins > Downloaded and click on Add Plugins... button. Choose the downloaded nbm
package file then click Install.
Features
- New Spring Boot Maven project wizards:
- Basic project
- Project generated by Spring Initializr service
- Enhanced properties file editor:
- completion and documentation of configuration properties names
- completion and documentation of configuration properties values (
hints
in configuration metadata)
- Spring Boot file templates:
CommandlineRunner
annotated classes
ApplicationRunner
annotated classes
application.properties
files
ConfigurationProperties
annotated classes
additional-spring-configuration-metadata.json
files
- Additional Spring Framework file templates:
Component
annotated classes
Configuration
annotated classes
Service
annotated classes
Controller
annotated classes (Spring MVC)
RestController
annotated classes (Spring MVC)
- interfaces extending
Repository
(Spring Data)
- Additional code generators in
pom.xml
files:
- Add spring configuration processor dependency
- Add
spring-devtools
dependency
- Add
spring-actuator
dependency
- Toolbar button to trigger Spring Boot devtools reload
- Specific Spring Boot project properties page to:
- Specify command line run arguments
- Enable/disable devtools reload trigger
- Additional navigator panel to show request URL mappings of a
Controller
/ RestController
class
Issues and Documentation
Bug tracking: GitHub Issues
Documentation: GitHub Wiki
License
The plugin and its source code are licensed under Apache 2.0 license.
Acknowledgements
Completion of Spring Boot configuration properties feature is based on Keevosh plugin.
Template and code generator were inspired by those found on Spring Boot Tools 4 NetBeans.
Requestmappings navigator panel feature contributed by Michael Simons.
Changelog
-
1.3 (October 2016): Devtools and request mappings
- Upgrade to Spring Boot version 1.4.1
- Action to trigger devtools reload (trough toolbar button or
Ctrl + Shift + L
keyboard shortcut)
- Spring boot dedicated panel in project properties dialog for specifying command line arguments and enabling devtools reload trigger
- Moved some file templates to the default Spring Framework category
- Navigator panel showing request URL mappings of a
Controller
/ RestController
class (contribution by Michael Simons)
- List of closed issues
-
1.2 (August 2016): File templates improvements
- Upgrade to Spring Boot version 1.4
- The file templates wizards that generate Java classes now use the standard NetBeans widgets (better name proposal, choice of source/test location and destination package)
- The wizards for
application.properties
files, additional configuration metadata and Spring Data repository interfaces now offer specific customization options
- The file templates are now shown only if the relevant dependencies are present (e.g. REST Controller Class is shown only if there is a dependency on spring-boot-starter-web)
- Devtools restart and reload now work when the project is run/debugged trough the spring maven plugin
- Fixed some UI glitches
- Enhanced Controller and RestController templates
- List of closed issues
-
1.1 (June 2016): Refinements
- Added missing
@Component
annotation to CommandLineRunner and ApplicationRunner file templates
- No more NetBeans module implementation dependencies, this allows the plugin to be available from the Update Center
- Improvements to New project wizard Spring Boot project (from Initializr):
- Asynchronous querying of the web service
- More paramenter validation
- Filtering of dependencies
- Show required boot version in tooltips of disabled dependencies
- Options to remove the maven wrapper, add the spring configuration processor dependency and run/debug trough the maven spring plugin
- List of closed issues
-
1.0 (May 2016): Initial public release