eclipse 启动tomcat 超时was unable to start within 45 seconds. If the server requires more time, try increasing the….在eclipse启动tomcat时遇到超时45秒的问题: Server Tomcat v7.0 Server at localhost was unable to startwithin 45 seconds. If the server requires more time, try increasingthe timeout in the server editor[......]
hibernate4配置proxool连接池
hibernate4配置proxool连接池。
1.hibernate.cfg.xml配置
<?xml version=’1.0′ encoding=’utf-8′?>
<!DOCTYPE hibernate-configuration PUBLIC
“-//Hibernate/Hibernate Configuration DTD 3.0//EN”
“http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd“>
<hibernate-configuration>[......]
hibernate4配置c3p0连接池
hibernate4配置c3p0连接池
Java代码 收藏代码
<?xml version=’1.0′ encoding=’utf-8′?>
<!DOCTYPE hibernate-configuration PUBLIC
“-//Hibernate/Hibernate Configuration DTD 3.0//EN”
“http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd”>
<hibernate-configuration>
<session-fa[......]
struts2,hibernate4,spring3配置缺乏jar包时问题汇总及解决办法
struts2,hibernate4,spring3配置缺乏jar包时问题汇总及解决办法。
1.java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
缺少asm-3.3.jar
2.java.lang.NoClassDefFoundError: org/objectweb/asm/commons/EmptyVisitor
缺少asm-commons-3.3.jar
3.java.lang.ClassNotFoundException: org.springframework.web.util.Log4jCon[......]
Struts2.3+Spring3.2.8+Hibernate4.1 annotation全注解配置
Struts2.3+Spring3.2.8+Hibernate4.1 annotation全注解配置实例源码介绍。
帮朋友搭建个简单的helloworld的平台,较简单,但是能用了。
给ssh的“零配置”一个正解。看我这个就够了ok了!
1
2
3
4
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/sshfw?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=round
jdbc.u[......]
登陆验证过滤 Session失效,跳转回login页面
登陆验证过滤 Session失效,跳转回login页面。
登陆过滤类;
public class LoginFilter implements Filter {
private FilterConfig config;
private String logon_page;
private String home_page;
public void destroy() {
config = null;
}
public void init(FilterConfig filterconfig) throws ServletException {
// 从部署[......]
java TCP的socket数据包拆分方法
java基于TCP的socket数据包拆分方法。
flex4.5 DataGrid控制某行不可编辑问题
flex4.5 DataGrid控制某行不可编辑。
网上关于flex4.5的DataGrid例子很少,自己做的时候也遇到了很多问题。
应用程序中的DataGrid:(要用自定义的itemEditor)
- <s:DataGrid id=”osinfoData” width=”100%” height=”100%” alternatingRowColors=”[#eeffff,#ffffff]“ editable=”true” dataProvider=”{infoproperties}”[......]
安装多个jdk多个tomcat版本的冲突问题解决办法
安装多个jdk多个tomcat版本的冲突问题解决办法。
一个服务器两个jdk,一个是jdk1.4,一个是jdk1.6。
同样tomcat版本是,tomcat5.0和tomcat6.0。都安装在一个服务器上,这个冲突问题,弄了好久,让人头疼啊
tomcat5.0匹配jdk1.4,
tomcat6.0匹配jdk1.6,
1.首先指定tomcat匹配的jdk
两个tomcat启动端口号不一样,这个就不用说了。
其次,这个两个tomcat匹配的jdk版本自然也是不一样的,
但是系统默认是高版本的jdk,这是tomcat5就出问题了,tomcat5只支持到[......]
java程序开发中如何提高性能
java程序开发中如何提高性能。
转自:http://www.iteye.com/magazines/66
2. 尽量避免随意使用静态变量
[......]