码迷,mamicode.com
首页 >  
搜索关键字:Springmvc    ( 10598个结果)
学习笔记——Spring+SpringMVC+MyBatis框架整合
一、Maven创建项目1. 在Eclipse中选择New -> Project -> Maven -> Maven Project2. 选择默认workspace之后建立maven-webapp3. 填写Group Id和Artifact Id(项目名称)4. 建立工程后发现目录结构报错5. 为了避...
分类:编程语言   时间:2016-01-17 16:04:27    阅读次数:212
spring+mybatis+springmvc的配置
1.web.xml的配置 contextConfigLocation classpath:/config/jdbc.xml org.springframework.web.context.ContextLoaderListener encodingFilter ...
分类:编程语言   时间:2016-01-17 01:17:33    阅读次数:228
SpringMVC集成AOP错误:java lang classnotfoundexception org aspectj lang joinpoint
记录自己出现的问题,Spring AOP 使用测试类测试没问题,在SpringMVC启动服务器时出现java lang classnotfoundexception org aspectj lang joinpoint错误,开始以为是包错误,最后发现是因为IDEA配置问题导致。把右侧未添加的包双击移...
分类:编程语言   时间:2016-01-16 23:49:05    阅读次数:274
JSP页面EL表达式不解析
问题是这样:在搭建springMVC环境的时候,笔者写了一个简单的Controller如下: @Controller public class HelloController { @RequestMapping(value = "/hello.do", method = RequestMethod....
分类:Web程序   时间:2016-01-16 23:43:58    阅读次数:243
SpringMVC: web.xml中声明DispatcherServlet时一定要加入load-on-startup标签
游历SpringMVC源代码后发现,在web.xml中注冊的ContextLoaderListener监听器不过初始化了一个根上下文,只完毕了组件扫描和与容器初始化相关的一些工作,并没有探測到详细每一个URL应当map到哪个Controller, 哪个方法上。而剩一下的这些复杂工作都...
分类:编程语言   时间:2016-01-16 21:03:49    阅读次数:195
[Spring MVC - 2A] - java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
严重: Servlet.service() for servlet [springMVC] in context with path [/ExceptionManageSystem] threw exception [Request processing failed; nested excepti...
分类:数据库   时间:2016-01-14 15:32:56    阅读次数:559
[springMVC - 1A] - Request processing failed; nested exception is org.apache.ibatis.builder.IncompleteElementException
一月 14, 2016 1:30:07 下午 org.apache.catalina.core.StandardWrapperValve invoke严重: Servlet.service() for servlet [springMVC] in context with path [/Except...
分类:编程语言   时间:2016-01-14 14:01:22    阅读次数:176
SpringMVC 利用HttpPost向服务端接口上传文件
现在Spring的广泛使用使得以前我们在做文件上传的不需要对数据进行转码传输,MultipartEntity内封装了各种方法,我们可以直接在客户端实例化MultipartEntity类将需要上传的文件以参数的形式写入HttpPost的Entity,这样类似与在前端使用form表单提交来实现文件上传,...
分类:编程语言   时间:2016-01-14 10:51:54    阅读次数:4982
springmvc 请求出现400错误(当传入的参数类型是Date时加上下面代码试试)
@InitBinder protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception { binder.registerCustomEditor(D...
分类:编程语言   时间:2016-01-13 17:18:13    阅读次数:145
Springmvc 前台传递参数到后台需要数据绑定
我们知道,当提交表单时,controller会把表单元素注入到command类里,但是系统注入的只能是基本类型,如int,char,String。但当我们在command类里需要复杂类型,如Integer,date,或自己定义的类时,controller就不会那么聪明了。这时,就需要我们帮助他们了。...
分类:编程语言   时间:2016-01-13 12:49:58    阅读次数:147
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!