配置通过数据库认证用户登录打开webapp\WEB-INF目录下的deployerConfigContext.xml,替换 为
com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/db_name root 使用j...
分类:
数据库 时间:
2014-05-09 11:31:43
阅读次数:
477
一、WebService调用1.webservice支持四种调用方式:SOAP
1.1,SOAP 1.2,GET,POST。 2.如果要webservice支持GET,POST调用还需要web.config中添加:
3.webservice默认输出xml格式,如果想让webs...
分类:
Web程序 时间:
2014-05-09 10:56:12
阅读次数:
685
今天练习了一下@ResponseBody,主要是对json字符返回有了新的了解。1.配置@ResponseBody:
在Spring-Servlet.xml中开启注解配置: //主要是这一句比较重要。 ...
分类:
编程语言 时间:
2014-05-08 21:57:22
阅读次数:
371
com.sun.xml.bind.v2.ContextFactory类找不到的解决用cxf+spring发布webservice,使用apache-cxf客户端方式调用接口访问服务器时,报javax.xml.bind.JAXBException:
Provider com.sun.xml.bind....
分类:
编程语言 时间:
2014-05-08 21:54:58
阅读次数:
430
1.0.0 struts2 与 spring 的整合.1.1.0 新建maven工程 ,
编写pom.xml ,这里只需要简单的添加 一个组件就够了:在myeclipse 生成的pom.xml 添加如下代码: org.apache.struts
stru...
分类:
编程语言 时间:
2014-05-08 21:41:22
阅读次数:
659
LayoutInflater inflater =
getLayoutInflater();View imageLayout =
inflater.inflate(R.layout.preference_image.xml,null);ImageView imageView =
(ImageView...
分类:
其他好文 时间:
2014-05-08 21:34:32
阅读次数:
307
Given a triangle, find the minimum path sum from
top to bottom. Each step you may move to adjacent numbers on the row below.For
example, given the fol...
分类:
其他好文 时间:
2014-05-08 21:08:25
阅读次数:
407
1. Rem "parameters: 1 ebank/emas 2 simulation/real
3 path of the wp file "Rem表示将在控制台打印的注释,::后为不会打印的注释。2. if "%1"=="ebank" (set
app=ebank&&set port=400...
分类:
其他好文 时间:
2014-05-08 20:29:02
阅读次数:
248
首先在web.xml中要添加如下部分 dwr-invoker DWR Servlet
uk.ltd.getahead.dwr.DWRServlet config-vnd /WEB-INF/dwr-demo.xml 2 dwr-invoker
/dwr/* 然后在指定的目录,这里是...
分类:
其他好文 时间:
2014-05-08 20:21:52
阅读次数:
330