content top

【090711更新】SSH常见问题及解决办法

内容检索 1.警告: No configuration found for the specified action: ‘/myNameSpace/login.action’ in namespace: ”. Form action defaulting to ‘action’ attribute’s literal value. 2.关于s标签的错误 3.导入struts-default.xml的错误 4.Cannot locate the chosen ObjectFactory ———————————————–分割线——————————————————– 1.出错信息: 警告: No configuration found for the specified action: ‘/myNameSpace/login.action’ in namespace: ”. Form action defaulting to ‘action’ attribute’s literal value. Java代码 今天花了点时间把struts2警告事件彻底的测试了一边,终于有点眉目了。希望能给其他人带来一点帮助。 警告信息: 警告: No configuration found for [...]

Read More

Spring的applicationContext.xml文件

以下是详解Spring的applicationContext.xml文件代码: <!– 头文件,主要注意一下编码 –> <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE beans PUBLIC “-//SPRING//DTD BEAN//EN” “http://www.springframework.org/dtd/spring-beans.dtd”> <beans> <!– 建立数据源 –> <bean id=”dataSource” class=”org.apache.commons.dbcp.BasicDataSource”> <!– 数据库驱动,我这里使用的是Mysql数据库 –> <property name=”driverClassName”> <value>com.mysql.jdbc.Driver</value> </property> <!– 数据库地址,这里也要注意一下编码,不然乱码可是很郁闷的哦! –> <property name=”url”> <value> jdbc:mysql://localhost:3306/tie?useUnicode=true&amp;characterEncoding=utf-8 </value> </property> <!– 数据库的用户名 –> <property name=”username”> <value>root</value> </property> <!– 数据库的密码 –> <property name=”password”> <value>123</value> </property> </bean> <!– 把数据源注入给Session工厂 –> <bean [...]

Read More
content top