【发布时间】:2019-10-06 18:51:58
【问题描述】:
所以,我有一个简单的 Maven 项目,我想添加 Spring 框架支持,主要是生成 Spring Config 文件。但是,在名为 Add Framework Support 的 IntelliJ 菜单中,我没有看到 Spring 选项 这是我的 pom.xml 文件:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>pl.javastart</groupId>
<artifactId>spring-di-xml</artifactId>
<version>1.0-SNAPSHOT</version>
<properties>
<maven.compiler.source>12</maven.compiler.source>
<maven.compiler.target>12</maven.compiler.target>
<spring-framework.version>5.0.6.RELEASE</spring-framework.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring-framework.version}</version>
</dependency>
</dependencies>
</project>
我尝试重新导入 Maven,但没有任何结果。 任何建议将不胜感激。
【问题讨论】:
-
如果您对答案感到满意,请在下面查看我的答案并接受答案作为解决方案。
标签: java spring intellij-idea