52 lines
1.7 KiB
Markdown
52 lines
1.7 KiB
Markdown
# Atom package for Spring Boot Application Properties
|
|
|
|
Atom package and Language Server providing support for Spring Boot applications development. Beans data for `.java` file, and editing support for `application.properties`, `application.yml` files.
|
|
|
|
## Installation:
|
|
|
|
Install it from Atom `Install Packages`, search for `spring-boot`
|
|
|
|
## Usage:
|
|
|
|
The extension will automatically activate when you edit files with the following
|
|
name patterns:
|
|
|
|
- `.java` => activates spring beans data support
|
|
- `application.properties` => activates support for .properties file format.
|
|
- `application.yml` => activates support for .yml file format.
|
|
|
|
For all other files containing boot properties select grammar to be `Spring-Boot-Properties` for `properties` file format or `Spring-Boot-Properties-YAML` for 'YAML' file format
|
|
|
|
# Developer notes
|
|
|
|
## Bulding and Running
|
|
|
|
To build all these pieces you normally only need to run:
|
|
|
|
npm install
|
|
|
|
Now you can link it to Atom:
|
|
|
|
apm link .
|
|
|
|
Open Atom or execute `Refresh Window` in the opened instance (Packages -> Command Palette -> Toggle then search for the command).
|
|
|
|
## Debugging
|
|
|
|
**Client Side Debugging**: Open Atom's `Developer Tools` view - View -> Developer -> Toggle Developer Tools
|
|
|
|
**Server Side Debugging**: Change `launchVmArgs(jvm)` implementation in `lib/main.js` to be:
|
|
```
|
|
launchVmArgs(jvm) {
|
|
return Promise.resolve([
|
|
'-Xdebug',
|
|
'-agentlib:jdwp=transport=dt_socket,server=y,address=7999,suspend=n',
|
|
'-Dorg.slf4j.simpleLogger.logFile=boot-properties.log',
|
|
'-Dorg.slf4j.simpleLogger.defaultLogLevel=debug',
|
|
]);
|
|
}
|
|
|
|
```
|
|
(Then setup the remote debugger from your IDE on the same port `7999`)
|
|
|