struts2eclipse
我在命令行编译Action类的时候一直都是报错–程序包com.opensymphony.xwork2不存在,但是我是在WEB-INF/lib文件夹里面添加了struts的必要的几个这几个jar包的,这个问题困扰了我几天还是没有解决,希望大家可以帮我解决一下,谢谢啦。
package org.crazyi……继续阅读 »
11年前 (2015-04-06) 2470浏览 0评论
0个赞
wordjavautf-8乱码response
如题,以下是导出代码:
File previewFile = new File(request.getSession()
.getServletContext()
.getRealPath(TRAGET_DOC));
InputStream is = new FileInputStream(fileP……继续阅读 »
11年前 (2015-04-06) 2808浏览 0评论
0个赞
org.hibernate.exception.GenericJDBCException: could not execute query
at org.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)
at……继续阅读 »
11年前 (2015-04-06) 2159浏览 0评论
0个赞
hibernatejavaeeone?to?manysession
one获取数据时默认是不主动获取many的
one简单代码:
public class Subject implements Serializable{
private Set<Reply> replys = new HashSet<Reply>();……继续阅读 »
11年前 (2015-04-06) 1652浏览 0评论
0个赞
说明:
1.d:/iotest/1.txt文件是一个纯文本文件,大小为25.4M;
2.execute1方法不使用缓冲区,execute2方法使用缓冲区;
3.execute1方法和execute2方法分别循环10次;
结果:
execute1方法循环10次所需时间……继续阅读 »
11年前 (2015-04-06) 1575浏览 0评论
0个赞
javaxml图片
在java中有没有好的办法将XML文件生成png格式的图片
有哪位知道?
什么意思?XML文件变成png
xml文件读出来,然后画上去?我想知道xml转json的。
40分
网上帮你找的一个,试试这个http://shpshao.blog.51cto.com/1931202/647526
……继续阅读 »
11年前 (2015-04-06) 4447浏览 0评论
0个赞
cargomaven2
我在maven项目中使用cargo插件进行本地部署,dos窗口运行命令mvn cargo:start 最后访问地址:http://localhost:8082/account-web-my-0.0.1-SNAPSHOT/sinup.jsp 不能成功访问阿???我是少做了什么,还是什么地方做得不对?cargo插……继续阅读 »
11年前 (2015-04-06) 1693浏览 0评论
0个赞
我有个程序,原先在Windows和Linux下都正常运行,现在放到AIX(JDK16. for AIX)上运行程序报异常。
Exception in thread “Thread-5” java.lang.ExceptionInInitializerError
at java.lang.J9VMInter……继续阅读 »
11年前 (2015-04-06) 1831浏览 0评论
0个赞
struts2tomcatfilter
struts2内部是基于filter的,小弟在研究struts2的运行机制,Tomcat启动时,为struts2完成了哪些初始化呢?
20分
你看tomcat
启动的时候
打印的日志里 会显示struts哪些类初始化了
20分
web.xml
struts.xml
这两个配置文件里你配置的……继续阅读 »
11年前 (2015-04-05) 2784浏览 0评论
0个赞