ylx 7 years ago
parent
commit
3395e16e4f

+ 32 - 32
saicLogistics/.classpath

@@ -1,32 +1,32 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
-	<classpathentry kind="src" output="target/classes" path="src/main/java">
-		<attributes>
-			<attribute name="optional" value="true"/>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
-		<attributes>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
-		<attributes>
-			<attribute name="optional" value="true"/>
-			<attribute name="maven.pomderived" value="true"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
-		<attributes>
-			<attribute name="maven.pomderived" value="true"/>
-			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
-		<attributes>
-			<attribute name="owner.project.facets" value="java"/>
-		</attributes>
-	</classpathentry>
-	<classpathentry kind="output" path="target/classes"/>
-</classpath>
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" output="target/classes" path="src/main/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
+		<attributes>
+			<attribute name="optional" value="true"/>
+			<attribute name="maven.pomderived" value="true"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
+		<attributes>
+			<attribute name="maven.pomderived" value="true"/>
+			<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8">
+		<attributes>
+			<attribute name="owner.project.facets" value="java"/>
+		</attributes>
+	</classpathentry>
+	<classpathentry kind="output" path="target/classes"/>
+</classpath>

+ 3 - 3
saicLogistics/.settings/org.eclipse.jdt.core.prefs

@@ -1,13 +1,13 @@
 eclipse.preferences.version=1
 org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
 org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
 org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.7
+org.eclipse.jdt.core.compiler.compliance=1.8
 org.eclipse.jdt.core.compiler.debug.lineNumber=generate
 org.eclipse.jdt.core.compiler.debug.localVariable=generate
 org.eclipse.jdt.core.compiler.debug.sourceFile=generate
 org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
 org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
 org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
-org.eclipse.jdt.core.compiler.source=1.7
+org.eclipse.jdt.core.compiler.source=1.8

+ 7 - 7
saicLogistics/.settings/org.eclipse.wst.common.project.facet.core.xml

@@ -1,7 +1,7 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<faceted-project>
-  <fixed facet="wst.jsdt.web"/>
-  <installed facet="jst.web" version="2.3"/>
-  <installed facet="wst.jsdt.web" version="1.0"/>
-  <installed facet="java" version="1.7"/>
-</faceted-project>
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+  <fixed facet="wst.jsdt.web"/>
+  <installed facet="jst.web" version="2.3"/>
+  <installed facet="wst.jsdt.web" version="1.0"/>
+  <installed facet="java" version="1.8"/>
+</faceted-project>

+ 5 - 0
saicLogistics/src/main/java/com/fuzamei/entity/Entity.java

@@ -0,0 +1,5 @@
+package com.fuzamei.entity;
+
+public class Entity {
+
+}

+ 1 - 0
saicLogistics/src/main/java/com/fuzamei/mapper/NewFile.xml

@@ -0,0 +1 @@
+<?xml version="1.0" encoding="UTF-8"?>

+ 5 - 0
saicLogistics/src/main/java/com/fuzamei/mapperInterface/Mapper.java

@@ -0,0 +1,5 @@
+package com.fuzamei.mapperInterface;
+
+public interface Mapper {
+	
+}

+ 5 - 0
saicLogistics/src/main/java/com/fuzamei/service/AAA.java

@@ -0,0 +1,5 @@
+package com.fuzamei.service;
+
+public interface AAA {
+
+}

+ 7 - 0
saicLogistics/src/main/java/com/fuzamei/service/serviceImpl/AA.java

@@ -0,0 +1,7 @@
+package com.fuzamei.service.serviceImpl;
+
+import com.fuzamei.service.AAA;
+
+public class AA implements AAA{
+	
+}

+ 5 - 0
saicLogistics/src/main/java/com/fuzamei/web/UserAction.java

@@ -0,0 +1,5 @@
+package com.fuzamei.web;
+
+public class UserAction {
+
+}

+ 2 - 11
saicLogistics/src/main/resources/applicationContext.xml

@@ -17,7 +17,7 @@
 	<!-- 数据源的配置 -->
 	<bean id = "dataSource" class="org.apache.commons.dbcp.BasicDataSource">
 		<property name="driverClassName" value = "com.mysql.jdbc.Driver"></property>
-		<property name="url" value = "jdbc:mysql://118.178.58.178:3306/fund_trusteeship_ccb?useUnicode=true&amp;characterEncoding=UTF-8"></property>
+		<property name="url" value = "jdbc:mysql://118.178.58.178:3306/sq_logistics?useUnicode=true&amp;characterEncoding=UTF-8"></property>
 		<property name="username" value = "root"></property>
 		<property name="password" value = "sql345678"></property>
 	</bean>
@@ -25,22 +25,13 @@
 	<!-- session工厂 -->
 	<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
 		<property name="dataSource" ref="dataSource"/>
+		<property name="typeAliasesPackage" value="com.fuzamei.entity"/>
 		<property name="mapperLocations" value="classpath:com/fuzamei/mapper/*.xml"/>
 		<property name="configLocation" value = "classpath:mybatis-config.xml"/>
 	</bean>
 	
 	<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">                                         
-        <!-- <property name="basePackage" value="com.fuzamei.mapper" />  --> 
         <property name="basePackage" value="com.fuzamei.mapperInterface" />                                      
-        <property name="sqlSessionFactoryBeanName" value="sqlSessionFactory"></property>                     
     </bean>
     
-    <bean id="multipartResolver" class="org.springframework.web.multipart.commons.CommonsMultipartResolver"> 
-     
-        <property name="defaultEncoding" value="utf-8"/> 
-       
-        <property name="maxUploadSize" value="20000000000"/> 
-      
-        <property name="maxInMemorySize" value="200000"/> 
-	</bean>
 </beans>

+ 2 - 1
saicLogistics/src/main/resources/mybatis-config.xml

@@ -3,7 +3,8 @@
 "http://mybatis.org/dtd/mybatis-3-config.dtd"> 
 <configuration>
 	 <settings>
+	 	<setting name="mapUnderscoreToCamelCase" value="true" />
     	<setting name="callSettersOnNulls" value="true"/>
-    	<setting name="logImpl" value="LOG4J" />  
+    	<setting name="logImpl" value="LOG4J" />
   	 </settings>
 </configuration>

+ 4 - 7
saicLogistics/src/main/resources/spring-mvc.xml

@@ -12,28 +12,25 @@
                         http://www.springframework.org/schema/context  
                         http://www.springframework.org/schema/context/spring-context.xsd">
 
-	<mvc:annotation-driven validator="validator"></mvc:annotation-driven>
+	<mvc:annotation-driven validator="validator"/>
 	<!-- hibernate validator参数校验 -->
 	<bean id="validator"
 		class="org.springframework.validation.beanvalidation.LocalValidatorFactoryBean">
 		<property name="providerClass" value="org.hibernate.validator.HibernateValidator" />
 	</bean>
 	<!-- 方法级别的校验 要校验的方法所在类必须添加@Validated注解 -->
-	<bean
-		class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor">
+	<bean class="org.springframework.validation.beanvalidation.MethodValidationPostProcessor">
 		<!-- 可以引用自己的 validator 配置,在本文中(下面)可以找到 validator 的参考配置,如果不指定则系统使用默认的 -->
 		<property name="validator" ref="validator" />
 	</bean>
 	<context:component-scan base-package="com.fuzamei" />
 	<!-- 配置事务 -->
-	<bean id="transactionManager"
-		class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
+	<bean id="transactionManager" class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
 		<!-- 加载数据源 -->
 		<property name="dataSource" ref="dataSource"></property>
 	</bean>
 	<!-- 开启事务扫描 -->
-	<tx:annotation-driven transaction-manager="transactionManager"
-		proxy-target-class="true" />
+	<tx:annotation-driven transaction-manager="transactionManager" proxy-target-class="true" />
 	<!-- 对token拦截验证 (为方便测试,测试环境给注释掉) -->
 	<!-- <mvc:interceptors> <mvc:interceptor> <mvc:mapping path="/*/api/*" /> 
 		<bean class="com.fuzamei.interceptor.TokenInterceptor" /> </mvc:interceptor>