Spring MVC 通过一套 MVC 注解,可以让 POJO 成为处理请求的控制器,无须实现任何接口1. 搭建环境:1). 加入 jar 包:commons-logging-1.1.1.jarspring-aop-4.0.0.RELEASE.jarspring-beans-4.0.0.RELEAS...
分类:
编程语言 时间:
2015-04-07 13:47:54
阅读次数:
165
前提:已经部署spring(参考上篇:web project 部署 spring bean工厂)一:新增依赖jar包 1:spring-aop-4.1.6.RELEASE.jar (修改applicationContext.xml中beans属性时需要)二:web.xml不变,修改applica.....
分类:
编程语言 时间:
2015-04-03 14:53:11
阅读次数:
204
1.JSONObject介绍JSONObject-lib包是一个beans,collections,maps,java arrays和xml和JSON互相转换的包。2.下载jar包http://files.cnblogs.com/java-pan/lib.rar提供了除JSONObject的jar之...
分类:
Web程序 时间:
2015-04-03 10:48:02
阅读次数:
271
1.背景今天要做一个demo,从github上clone一个springmvc mybatis的工程(https://github.com/komamitsu/Spring-MVC-sample-using-iBatis)打包成war后启动报错:org.springframework.beans.f...
分类:
移动开发 时间:
2015-04-02 18:51:32
阅读次数:
301
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
//题意:从num[1]~num[n]中取一段连续的序列,使得(num[i]+...+num[j])%p<=k且该序列的和最大化
//令ma=a%mod,mb=b%mod,如果ma<mb,那么(a-b)%mod的值...
分类:
其他好文 时间:
2015-04-02 09:09:16
阅读次数:
174
本篇博客主要介绍,CDI开发中,将所有的CDI Bean打包到一个jar包中,如何解决org.jboss.weld.exceptions.DeploymentException: WELD-001408 Unsatisfied dependencies for type [...] with qualifiers [@...] at injection point ... 异常。
介绍...
分类:
编程语言 时间:
2015-03-30 16:22:21
阅读次数:
258
【Spring】国际化支持一、总体结构:两个国际化资源中的内容:二、程序2.1 配置Spring上下文beans.xml文件 message1 说明:2.2 测试程序package lee;import org.springframework.context.ApplicationContext;i...
分类:
编程语言 时间:
2015-03-30 16:05:06
阅读次数:
203
Computer Science II 课上的作业老师要求完成一个Course Schedule的Exporter,在后台界面需要实现三个表格:Holiday Schedule, Lecture Schedule, Assignments Schedule。某位同学忙活了半天好不容易创建了一个Tab...
分类:
编程语言 时间:
2015-03-30 12:51:35
阅读次数:
243
struts1.3中报错
一个项目中struts-config.xml文件老是报错
在的标签中报错:
The content of element type "struts-config" must match "(display-name?,description?,form-beans?,global-exceptions?,global-forwards?,action-
mapp...
分类:
其他好文 时间:
2015-03-29 18:08:11
阅读次数:
192
整合SSH框架(1)
Spring4+hibernate4+Struts2的整合,整合完成后我会把这个项目上传上去,但是我的建议是最好还是自己在自己的电脑上自己整合一下,我不保证一定没问题
1、首先建立一个web项目
然后我们建立一个spring的配置xml文件
<beans xmlns="http://www.springframework.org/schema/beans...
分类:
编程语言 时间:
2015-03-29 13:45:58
阅读次数:
247