345

在客户端的web.xml中找到如下代码段并且加入高亮部分代码:

<filter>
	<filter-name>CAS Validation Filter</filter-name>
	<filter-class>
		org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter
	</filter-class>
	<init-param>
		<param-name>casServerUrlPrefix</param-name>
		<param-value>http://localhost:8080/txyin/cas</param-value>
	</init-param>
	<init-param>
		<param-name>serverName</param-name>
		<param-value>http://localhost:8080/</param-value>
	</init-param>
	<!-- 防获取参数中文乱码[开始] -->  
	<init-param>  
		<param-name>encoding</param-name>  
		<param-value>UTF-8</param-value>  
	</init-param>
	<!-- 防获取参数中文乱码[结束] -->  
</filter>