配置如下(pom.xml):
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
<dependencies>
<dependency>
<groupId>org.apache.tomcat</groupId>
<artifactId>tomcat-jsp-api</artifactId>
<version>9.0.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>5.1.5.RELEASE</version>
</dependency>
</dependencies>
写控制类没有提示(@GetMapper,@PostMapping);
原因:
这两处有冲突:(之前两个有勾选)
路径:window->preferences->java->editor->content assist->advanced;
我是把spring annotation proposals 前面的勾去掉,应用;就有提示了;
jetty启动报错:java.lang.ArrayIndexOutOfBoundsException: 24879
修改一下jetty版本就行了
<build>
<plugins>
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.4.15.v20190215</version>
<configuration>
<httpConnector>
<port>80</port>
</httpConnector>
<webAppConfig>
<contextPath>/</contextPath>
</webAppConfig>
</configuration>
</plugin>
</plugins>
</build>
jetty:关于pwc6117问题:
选中第一行,编辑
将Jre home 改成jdk,应用;