spring_reference/IX. ‘How-to’ guides/72.6.1. Configuring Spring ...

18 lines
744 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

### 72.6.1. 使用Maven配置Spring Loaded
为了在Maven命令行下使用Spring Loaded你只需将它作为一个依赖添加到Spring Boot插件声明中即可比如
```xml
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.0.RELEASE</version>
</dependency>
</dependencies>
</plugin>
```
正常情况下这在Eclipse和IntelliJ中工作的相当漂亮只要它们有相应的和Maven默认一致的构建配置Eclipse m2e对此支持的更好开箱即用