소스 검색

clean code

xueli.xue 8 년 전
부모
커밋
8b2d0e42c4

+ 4 - 6
xxl-job-admin/src/main/resources/applicationcontext-base.xml 파일 보기

@@ -1,13 +1,11 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <beans xmlns="http://www.springframework.org/schema/beans"
3
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4
-	xmlns:util="http://www.springframework.org/schema/util"
5
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
3
+	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+	   xmlns:context="http://www.springframework.org/schema/context"
5
+	   xsi:schemaLocation="http://www.springframework.org/schema/beans
6 6
            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
7 7
            http://www.springframework.org/schema/context
8
-           http://www.springframework.org/schema/context/spring-context-3.0.xsd
9
-           http://www.springframework.org/schema/util 
10
-           http://www.springframework.org/schema/util/spring-util.xsd">
8
+           http://www.springframework.org/schema/context/spring-context-3.0.xsd">
11 9
 
12 10
 	<context:component-scan base-package="com.xxl.job.admin.service, com.xxl.job.admin.dao" />
13 11
 

+ 4 - 7
xxl-job-admin/src/main/resources/applicationcontext-database.xml 파일 보기

@@ -1,12 +1,9 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <beans xmlns="http://www.springframework.org/schema/beans"
3
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4
-	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
5
-	xsi:schemaLocation="
6
-		http://www.springframework.org/schema/beans 
7
-		http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
8
-		http://www.springframework.org/schema/context 
9
-		http://www.springframework.org/schema/context/spring-context-3.0.xsd 
3
+	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+	   xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
5
+	   xsi:schemaLocation="http://www.springframework.org/schema/beans
6
+		http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
10 7
 		http://www.springframework.org/schema/aop 
11 8
 		http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 
12 9
 		http://www.springframework.org/schema/tx 

+ 3 - 8
xxl-job-admin/src/main/resources/applicationcontext-xxl-job.xml 파일 보기

@@ -1,13 +1,8 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <beans xmlns="http://www.springframework.org/schema/beans"
3
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4
-	xmlns:util="http://www.springframework.org/schema/util"
5
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
6
-           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
7
-           http://www.springframework.org/schema/context
8
-           http://www.springframework.org/schema/context/spring-context-3.0.xsd
9
-           http://www.springframework.org/schema/util 
10
-           http://www.springframework.org/schema/util/spring-util.xsd">
3
+	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+	   xsi:schemaLocation="http://www.springframework.org/schema/beans
5
+           http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
11 6
 
12 7
 	<bean id="quartzScheduler" lazy-init="false" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
13 8
 		<property name="dataSource" ref="dataSource" />

+ 6 - 14
xxl-job-admin/src/main/resources/springmvc-context.xml 파일 보기

@@ -1,20 +1,12 @@
1
-<?xml version="1.0" encoding="UTF-8"?> 
1
+<?xml version="1.0" encoding="UTF-8"?>
2 2
 <beans xmlns="http://www.springframework.org/schema/beans"
3
-    xmlns:aop="http://www.springframework.org/schema/aop" 
4
-    xmlns:context="http://www.springframework.org/schema/context" 
5
-    xmlns:p="http://www.springframework.org/schema/p" 
6
-    xmlns:tx="http://www.springframework.org/schema/tx"
7
-    xmlns:mvc="http://www.springframework.org/schema/mvc"
8
-    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
9
-    xsi:schemaLocation="  
10
-		http://www.springframework.org/schema/beans 
3
+	   xmlns:context="http://www.springframework.org/schema/context"
4
+	   xmlns:mvc="http://www.springframework.org/schema/mvc"
5
+	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
+	   xsi:schemaLocation="http://www.springframework.org/schema/beans
11 7
 		http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
12 8
 		http://www.springframework.org/schema/context 
13
-		http://www.springframework.org/schema/context/spring-context-3.0.xsd 
14
-		http://www.springframework.org/schema/aop 
15
-		http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 
16
-		http://www.springframework.org/schema/tx 
17
-		http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
9
+		http://www.springframework.org/schema/context/spring-context-3.0.xsd
18 10
 		http://www.springframework.org/schema/mvc
19 11
 		http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd">
20 12
 

+ 3 - 11
xxl-job-executor-example/src/main/resources/applicationcontext-database.xml 파일 보기

@@ -1,16 +1,8 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <beans xmlns="http://www.springframework.org/schema/beans"
3
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4
-	xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"
5
-	xsi:schemaLocation="
6
-		http://www.springframework.org/schema/beans 
7
-		http://www.springframework.org/schema/beans/spring-beans-3.0.xsd 
8
-		http://www.springframework.org/schema/context 
9
-		http://www.springframework.org/schema/context/spring-context-3.0.xsd 
10
-		http://www.springframework.org/schema/aop 
11
-		http://www.springframework.org/schema/aop/spring-aop-3.0.xsd 
12
-		http://www.springframework.org/schema/tx 
13
-		http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">
3
+	   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+	   xsi:schemaLocation="http://www.springframework.org/schema/beans
5
+		http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
14 6
 		
15 7
 	<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
16 8
 		<property name="fileEncoding" value="utf-8" />

+ 4 - 6
xxl-job-executor-example/src/main/resources/applicationcontext-xxl-job.xml 파일 보기

@@ -1,13 +1,11 @@
1 1
 <?xml version="1.0" encoding="UTF-8"?>
2 2
 <beans xmlns="http://www.springframework.org/schema/beans"
3
-	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
4
-	xmlns:util="http://www.springframework.org/schema/util"
5
-	xsi:schemaLocation="http://www.springframework.org/schema/beans
3
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
+       xmlns:context="http://www.springframework.org/schema/context"
5
+       xsi:schemaLocation="http://www.springframework.org/schema/beans
6 6
            http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
7 7
            http://www.springframework.org/schema/context
8
-           http://www.springframework.org/schema/context/spring-context-3.0.xsd
9
-           http://www.springframework.org/schema/util 
10
-           http://www.springframework.org/schema/util/spring-util.xsd">
8
+           http://www.springframework.org/schema/context/spring-context-3.0.xsd">
11 9
 
12 10
 	<context:component-scan base-package="com.xxl.job.executor" />
13 11