下载地址
官网
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/neon/3/eclipse-jee-neon-3-win32.zip
https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/neon/3/eclipse-jee-neon-3-win32-x86_64.zip
镜像地址
http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/neon/3/eclipse-jee-neon-3-win32.zip
http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/neon/3/eclipse-jee-neon-3-win32-x86_64.zip
安装
笔者这里下载使用的地址是:http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/neon/3/eclipse-jee-neon-3-win32-x86_64.zip
转载
https://www.cnblogs.com/qiuye98/p/10026207.html
SpringMVC的helloword
web.xml
springmvc.xml
<!-- 扫描所有组件 -->
<context:component-scan base-package="com.jh"></context:component-scan>
<!-- 配置视图解析器,拼接页面 -->
<bean class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/pages/"></property>
<property name="suffix" value=".jsp"></property>
</bean>
MyFirstController.java
/*
* 告诉springmvc这是一个处理器,可以处理请求
* @Controller:标识哪个是处理器
*/
@Controller
public class MyFirstController {
/*
* /代表从当前项目下开始,处理当前项目下的hello请求
*/
@RequestMapping("/hello")
public String first(){
System.out.println("hello请求收到正在处理中");
return "success";
}
}
web
index.jsp
<a href="hello">helloworld</a>
success.jsp
<h1>成功</h1>