第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

tomcat啟動(dòng)報(bào)錯(cuò)

tomcat啟動(dòng)的時(shí)候報(bào)錯(cuò): ERROR - Dispatcher initialization failed java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException 有童鞋知道這個(gè)錯(cuò)誤是什么原因,怎么解決么?

正在回答

2 回答

struts:

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.3//EN" "http://struts.apache.org/dtds/struts-2.3.dtd">

<struts>

? ? <package name="bl" extends="struts-default" namespace="/">

? ? <action name="Yisheng_*" class="yishengAction" method="{1}">

? ? </action>

? ? </package>

</struts>

spring:
<?xml?version="1.0"?encoding="UTF-8"?>
<beans?xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns:context="http://www.springframework.org/schema/context"
	xmlns:aop="http://www.springframework.org/schema/aop"?xmlns:tx="http://www.springframework.org/schema/tx"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
????????http://www.springframework.org/schema/beans/spring-beans.xsd
????????http://www.springframework.org/schema/context
????????http://www.springframework.org/schema/context/spring-context.xsd
????????http://www.springframework.org/schema/aop
????????http://www.springframework.org/schema/aop/spring-aop.xsd
????????http://www.springframework.org/schema/tx
????????http://www.springframework.org/schema/tx/spring-tx.xsd">

	<!--?引入外部的屬性文件?-->
	<context:property-placeholder?location="classpath:jdbc.properties"?/>
	<!--?配置連接池?-->
	<bean?id="dataSource"?class="com.mchange.v2.c3p0.ComboPooledDataSource">
		<property?name="driverClass"?value="${jdbc.driverClass}"?/>
		<property?name="jdbcUrl"?value="${jdbc.url}"?/>
		<property?name="user"?value="${jdbc.username}"?/>
		<property?name="password"?value="${jdbc.password}"?/>
	</bean>
	<!--?hibernate相關(guān)屬性配置-->
	<bean?id="sessionFactory"
		class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
		<property?name="dataSource"?ref="dataSource"?/>
		<property?name="hibernateProperties">
			<props>
				<prop?key="hibernate.dialect">
					org.hibernate.dialect.MySQLDialect
			</prop>
				<prop?key="hibernate.show_sql">true</prop>
				<prop?key="hibernate.format_sql">true</prop>
				<prop?key="hibernate.hbm2ddl_auto">update</prop>
			</props>
		</property>

		<property?name="mappingResources">
			<list>
				<value>domin/TYisheng.hbm.xml</value>
				<value>domin/TKeshi.hbm.xml</value>
			</list>
		</property>
	</bean>

	<!--?action配置?-->
	<bean?id="yishengAction"?class="action.YishengAction"?scope="prototype">
		<property?name="yishengService"?ref="yishengService"></property>
	</bean>
	<!--?業(yè)務(wù)層配置?-->
	<bean?id="yishengService"?class="service.YishengService">
		<property?name="yishengDao"?ref="yishengDao">
		</property>
	</bean>
	<!--?dao層配置?-->
	<bean?id="yishengDao"?class="dao.YishengDao">
	</bean>

	
</beans>

web.xml:

<?xml version="1.0" encoding="UTF-8"?>

<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://java.sun.com/xml/ns/javaee?

http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">

<listener>

<listener-class> org.springframework.web.context.ContextLoaderListener</listener-class>

</listener>

<context-param>

<param-name>contextConfigLocation</param-name>

<param-value>classpath:applicationContext.xml</param-value>

</context-param>


<filter>

<filter-name>struts</filter-name>

<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>

</filter>

<filter-mapping>

<filter-name>struts</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

<welcome-file-list>

<welcome-file>login.jsp</welcome-file>

</welcome-file-list>

</web-app>


0 回復(fù) 有任何疑惑可以回復(fù)我~

有木有代碼,

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

么么小跳跳 提問(wèn)者

嗯嗯,幾個(gè)配置文件的代碼我寫在 我的回答里面了
2017-04-15 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

tomcat啟動(dòng)報(bào)錯(cuò)

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)