摘要: 一、下载安装Spring 下载Spring地址:https://repo.spring.io/libs-release-local/ 沿着org-springframework-spring,可以看到各版本的压缩包下载链接 解压后有如下几个子文件 docs:Spring相关文档,包括开发指南,API 阅读全文
posted @ 2022-08-17 11:01 qinsys 阅读(49) 评论(0) 推荐(0)
摘要: 1.代码: 2.因为要使用到javaee的东西,所以要把servlet-aip.jar包添加到classpath: 向classpath添加:%CATALINA_HOME%\lib\servlet-api.jar 3.配置web.xml,设置url映射 <servlet> <servlet-name 阅读全文
posted @ 2022-07-23 12:47 qinsys 阅读(33) 评论(0) 推荐(0)
摘要: ● 虚拟目录映射:配置URL到目录的映射 1.配置server.xml: <Context docBase="E:\Program\JavaEE\news" path="news" /> 修改后要重启服务器,不建议。上面,path=“”,则配置成缺省的web应用。 在tomcat文档下,查看配置co 阅读全文
posted @ 2022-07-23 12:41 qinsys 阅读(299) 评论(0) 推荐(0)