Browse Source

在测试服务器上正常运行

yaobo 6 years ago
parent
commit
58a60022cf

+ 1 - 1
.classpath

@@ -8,5 +8,5 @@
 			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
 		</attributes>
 	</classpathentry>
-	<classpathentry kind="output" path="src/main/webapp/WEB-INF/classes"/>
+	<classpathentry kind="output" path="target/classes"/>
 </classpath>

File diff suppressed because it is too large
+ 1 - 1
.settings/com.genuitec.eclipse.j2eedt.core.prefs


+ 1 - 1
src/main/java/cn/efunbox/model/Recommend.java

@@ -20,7 +20,7 @@ public class Recommend {
     private int created;	//创建时间
     
     /*
-     CREATE TABLE `efunbox_recmd` (
+     CREATE TABLE `film_recmd` (
                   `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '唯一编号',
                   `age` int(5) DEFAULT '5' COMMENT '年龄:1-99',
                   `sex` int(2) DEFAULT '1' COMMENT '性别:1为男,2为女',

+ 2 - 0
src/main/resources/log4j.properties

@@ -3,11 +3,13 @@ log4j.rootLogger=DEBUG, console,file
 log4j.logger.org.mybatis=DEBUG
 
 log4j.appender.console=org.apache.log4j.ConsoleAppender
+log4j.appender.console.Threshold = DEBUG
 log4j.appender.console.layout=org.apache.log4j.PatternLayout
 log4j.appender.console.layout.ConversionPattern=console info\: %5p %d %C\: %m%n
 	
 log4j.appender.file=org.apache.log4j.RollingFileAppender   
 log4j.appender.file.File=/Users/yao/develop/tomcat-apache-8.5.5/webapps/logs/log.txt   
 log4j.appender.file.MaxFileSize=90KB  
+log4j.appender.file.Threshold = ERROR
 log4j.appender.file.layout=org.apache.log4j.PatternLayout   
 log4j.appender.file.layout.ConversionPattern=file info\: %p----%d{yyyy-MM-dd HH\:mm\:ss} %C  %m%n   

+ 3 - 3
src/main/resources/mybatis-spring.xml

@@ -11,13 +11,13 @@
      http://www.springframework.org/schema/tx 
      http://www.springframework.org/schema/tx/spring-tx.xsd">
 	
-    <!-- 配置数据源 -->
+    <!-- 配置数据源 测试数据库 mysql -h 192.168.1.87 -uroot -padmin123-->
     <bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource">
         <!-- 基本属性 url、user、password -->  
         <property name="driverClassName" value="com.mysql.jdbc.Driver" />  
-        <property name="url" value="jdbc:mysql://127.0.0.1:3306/efunbox_recmd" />  
+        <property name="url" value="jdbc:mysql://192.168.1.87:3306/efunbox_recmd" />  
         <property name="username" value="root" />  
-        <property name="password" value="Efunbox^^2015$" /> <!-- 项目测试服务器 Efunbox^^2015$ --> 
+        <property name="password" value="admin123" /> 
         <property name="initialSize" value="1" />  
         <property name="minIdle" value="1" />   
         <property name="maxActive" value="20" />