-
Notifications
You must be signed in to change notification settings - Fork 210
Content Assist
Write Spring code with templates, available via regular code completion.
@GetMapping
@PostMapping
@PutMapping
@RequestMapping
Additional code completions for Spring-specific annotations
-
@Value
: code completion for Spring Boot property keys -
@Scope
: code completion for standard scope names
Starting with Spring Tools version 4.2.1, the tooling features content-assist code completions within Spring XML config files.
Note: this early implementation is extremely limited and just a starting point, more will follow in subsequent versions of the tooling. If you are looking for something specific, please file an enhancement request as a new GitHub issue in this project.
This content-assist helps you to pick a type (class or interface) when working with Spring XML config files. The supported elements are (the <*>
marks the cursor position for which the tooling offers content-assist):
<bean id="theBean" class="<*>"/>
The content-assist for types does not yet support package prefixes and works in class names only.
This content-assist helps you to identify properties of beans for which you would like to define an injection:
<property name="<*>" ref="theOtherBean"/>
The content-assist can identify property names only in case the class
attribute of the parent element is defined and existing. At the moment, only properties with setter methods are recognized, and only in the concrete bean class. Super types are not taken into account yet.
This content-assist helps you to refer to beans that are defined in the same or another Spring XML config file or via the various annotations. It uses the same information as the navigation to beans with the symbol @+
.
<property name="dependency" ref="<*>"/>
At the moment all bean IDs are listed as proposals that are known from the workspace. This doesn't filter out bean IDs that are outside of the project or its dependencies yet. And the content-assist doesn't propose beans that are defined inside of libraries (JAR files or JMOD modules).
- Installation (latest release + snapshots)
- User Guide
- Getting Started
- Navigation
- Live Application Information
- Content Assist
- Version Validation
- Upgrade Support
- Validations and Quick Fixes
- WebFlux Support
- Boot Properties Editor
- Boot Dashboard
- Other Editors
- STS3
- Custom VM args
- FAQ
- Changelog
- Known Limitations & Issues
- Report an Issue
- Developer Manual
- Overview
- Language Server Integration into Clients
- Communication with JDT LS
- Spring Tools Language Server Protocol Extensions