今天我将一个IBatis+Spring+Struts的web工程从Tocmat5中移植到Resin2中,本来在Tomcat5中可以运行的Web项目,在Resin中就不能初始化Spring的ApplicationContext了,导致web不能启动。后来就Spring的applicationContext.xml中的Context的初始化方式由: <servlet> <servlet-name>context</servlet-name> <servlet-class>org.springframework.web.context.ContextLoaderServ ...
2008-03-03

JNDI tomcat5 Mysql5 中文乱码

关键字: 乱码
 <GlobalNamingResources>     <!-- Test entry for demonstration purposes -->    <Environment name="simpleValue" type="java.lang.Integer" value="30"/>    <!-- Editable user database that can also be us ...
我以前遇到tomcat+mysql5中文乱码时都是去网上找解决办法,解决了后就不去深究原因,现在我总结一下:   1:关于        Url = "jdbc:mysql://localhost:3306/test?useUnicode=true&characterEncoding=UTF-8"与    Url = "jdbc:mysql://localhost:3306/test?useUnicode=true&amp;characte ...