![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springMVC
冰忆雪_1987
不想成为大师级别的程序猿,只求把最基本的代码写好
展开
-
在SpringMVC中,获取request对象的几种方式
工作中,由于写定时任务需要用到request获取ip地址,但springMVC模式下的定时器不允许带参。因此需要获取request对象,查找了些资料如下:一、通过注解:@Autowiredprivate HttpServletRequest request;二、在web.xml里配置监听:listener> listener-cla原创 2016-10-10 15:53:37 · 950 阅读 · 0 评论 -
eclipse导入myeclipse的项目出现Name [jdbc/TestPool] is not bound in this Context. Unable to find jdbc
如题,eclipse导入myeclipse的项目。通过Project Facets进行转换,将其转换为web项目。在进过一系列处理后,将problem里的红叉叉给处理后,启动tomcat就报了个“class path resource [spring-MVC.xml] cannot be opened because it does not exist”的异常。查看了代码“public s...原创 2018-09-14 13:44:49 · 5797 阅读 · 1 评论