Procházet zdrojové kódy

修改配置文件

před 5 roky
rodič
revize
fc8a5ad001

+ 13 - 13
minigame/WebContent/WEB-INF/web.xml

@@ -6,7 +6,7 @@
 	id="WebApp_ID" version="2.5">
 	<display-name>minigame</display-name>
 	<welcome-file-list>
-		<welcome-file>/view/home.jsp</welcome-file>
+		<welcome-file>index.html</welcome-file>
 	</welcome-file-list>
 	<error-page>
     <error-code>404</error-code>
@@ -48,18 +48,18 @@
 		<url-pattern>/</url-pattern>
 	</servlet-mapping>
 	<!-- 登陆身份过滤器 -->
-	<filter>
-		<filter-name>loginFilter</filter-name>
-		<filter-class>com.estates.filter.LoginFilter</filter-class>
-		<init-param>
-			<param-name>passUrl</param-name>
-			<param-value>/system/sysLogin;login.html;</param-value>
-		</init-param>
-	</filter>
-	<filter-mapping>
-		<filter-name>loginFilter</filter-name>
-		<url-pattern>*</url-pattern>
-	</filter-mapping>
+<!-- 	<filter> -->
+<!-- 		<filter-name>loginFilter</filter-name> -->
+<!-- 		<filter-class>com.estates.filter.LoginFilter</filter-class> -->
+<!-- 		<init-param> -->
+<!-- 			<param-name>passUrl</param-name> -->
+<!-- 			<param-value>/system/sysLogin;login.html;</param-value> -->
+<!-- 		</init-param> -->
+<!-- 	</filter> -->
+<!-- 	<filter-mapping> -->
+<!-- 		<filter-name>loginFilter</filter-name> -->
+<!-- 		<url-pattern>*</url-pattern> -->
+<!-- 	</filter-mapping> -->
 	<servlet-mapping>
 		<servlet-name>default</servlet-name>
 		<url-pattern>*.jpg</url-pattern>

+ 0 - 1
minigame/src/applicationContext.xml

@@ -49,5 +49,4 @@
 	<context:component-scan
 		base-package="com.estates.task" />
 	<task:annotation-driven />
-	<import resource="spring-redis.xml" />
 </beans>

+ 1 - 1
minigame/src/log4j.properties

@@ -2,7 +2,7 @@ log4j.rootCategory=INFO ,stdout, R
    
 log4j.appender.stdout=org.apache.log4j.ConsoleAppender   
 log4j.appender.stdout.layout=org.apache.log4j.PatternLayout   
-log4j.appender.stdout.layout.ConversionPattern=[qiangkebao] %p [%t] %C.%M(%L) | %m%n   
+log4j.appender.stdout.layout.ConversionPattern=[minigame] %p [%t] %C.%M(%L) | %m%n   
     
 log4j.appender.R=org.apache.log4j.DailyRollingFileAppender   
 log4j.appender.R.File=D://log/qiangkebao.log

+ 0 - 31
minigame/src/spring-redis.xml

@@ -1,31 +0,0 @@
-<beans xmlns="http://www.springframework.org/schema/beans"   
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
-xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd" default-autowire="byName">  
-    <bean id="jedisPoolConfig" class="redis.clients.jedis.JedisPoolConfig">  
-<!--          <property name="maxIdle" value="6"></property>   -->
-<!--         <property name="minEvictableIdleTimeMillis" value="300000"></property>   -->
-<!--         <property name="numTestsPerEvictionRun" value="3"></property>   -->
-<!--         <property name="timeBetweenEvictionRunsMillis" value="60000"></property> -->
-        
-        <property name="maxIdle" value="${redis.maxIdle}"></property>  
-        <property name="minEvictableIdleTimeMillis" value="${redis.minEvictableIdleTimeMillis}"></property>  
-        <property name="numTestsPerEvictionRun" value="${redis.numTestsPerEvictionRun}"></property>  
-        <property name="timeBetweenEvictionRunsMillis" value="${redis.timeBetweenEvictionRunsMillis}"></property>
-    </bean>  
-    <bean id="jedisConnectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory" destroy-method="destroy">  
-        <property name="poolConfig" ref="jedisPoolConfig"></property>  
-        <property name="hostName" value="${redis.hostName}"></property>  
-        <property name="port" value="${redis.port}"></property>  
-        <property name="timeout" value="${redis.timeout}"></property>  
-        <property name="usePool" value="${redis.usePool}"></property>  
-    </bean>  
-    <bean id="jedisTemplate" class="org.springframework.data.redis.core.RedisTemplate">  
-        <property name="connectionFactory" ref="jedisConnectionFactory"></property>  
-        <property name="keySerializer">  
-            <bean class="org.springframework.data.redis.serializer.StringRedisSerializer"/>  
-        </property>  
-        <property name="valueSerializer">  
-            <bean class="org.springframework.data.redis.serializer.JdkSerializationRedisSerializer"/>  
-        </property>  
-    </bean>  
-</beans>