安装插件

  • Spring Boot Extension Pack
  • Spring Boot Support

安装后,需要在项目工程pom.xml中添加插件

<!-- mvn dependency:build-classpath -->
<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-dependency-plugin</artifactId>
    <version>2.9</version>
    <executions>
        <execution>
            <id>build-classpath</id>
            <phase>generate-sources</phase>
            <goals>
                <goal>build-classpath</goal>
            </goals>
        </execution>
    </executions>
    <configuration>
        <outputFile>classpath.txt</outputFile>
    </configuration>
</plugin>

然后在控制台下运行: mvn dependency:build-classpath
之后在application.properties中就能正常补全提示了

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐