Commit 6b7eed13 authored by Paul0523's avatar Paul0523

重构代码

parent 6209aef4
......@@ -6,7 +6,7 @@
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>auth</artifactId>
<artifactId>bigsys-auth</artifactId>
<packaging>war</packaging>
<name>auth Maven Webapp</name>
<url>http://maven.apache.org</url>
......@@ -41,7 +41,7 @@
<dependency>
<groupId>com.paul</groupId>
<artifactId>spring</artifactId>
<artifactId>bigsys-spring</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
......
......@@ -7,7 +7,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>dubbo</artifactId>
<artifactId>bigsys-dubbo</artifactId>
<packaging>jar</packaging>
<name>dubbo</name>
......
......@@ -7,7 +7,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>redis-util</artifactId>
<artifactId>bigsys-redis</artifactId>
<packaging>jar</packaging>
<name>redis-util</name>
......
......@@ -7,7 +7,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>shiro</artifactId>
<artifactId>bigsys-shiro</artifactId>
<packaging>jar</packaging>
<name>shiro</name>
......
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<description>spring 基础依赖</description>
<author>fangzhipeng</author>
<mail>750411463@qq.com</mail>
<parent>
<artifactId>bigsys</artifactId>
<groupId>com.paul</groupId>
......@@ -7,7 +12,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring</artifactId>
<artifactId>bigsys-spring</artifactId>
<packaging>jar</packaging>
<name>spring</name>
......@@ -21,13 +26,6 @@
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
......@@ -113,10 +111,5 @@
<artifactId>spring-webmvc-portlet</artifactId>
<version>${spring.vesion}</version>
</dependency>
<dependency>
<groupId>commons-httpclient</groupId>
<artifactId>commons-httpclient</artifactId>
<version>3.1</version>
</dependency>
</dependencies>
</project>
......@@ -7,7 +7,7 @@
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>user</artifactId>
<artifactId>bigsys-user</artifactId>
<packaging>jar</packaging>
<name>user</name>
......
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>bigsys</artifactId>
<groupId>com.paul</groupId>
<version>1.0-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>bigsys-webdemo</artifactId>
<packaging>war</packaging>
<name>bigsys-webdemo Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>
<groupId>com.paul</groupId>
<artifactId>bigsys-spring</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<finalName>bigsys-webdemo</finalName>
</build>
</project>
package com.paul.bigsys.webdemo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
* Created by fangzhipeng on 2017/8/15.
*/
@Controller
public class TestController {
@RequestMapping(value = "/hello")
@ResponseBody
public String hello() {
return "hello world";
}
}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
<import resource="spring-mvc.xml" />
</beans>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.2.xsd">
<context:component-scan base-package="com.paul" />
<mvc:annotation-driven />
</beans>
\ No newline at end of file
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
<servlet>
<servlet-name>dispatcher</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>classpath:applicationContext.xml</param-value>
</init-param>
<load-on-startup>0</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>dispatcher</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
......@@ -9,12 +9,13 @@
<packaging>pom</packaging>
<version>1.0-SNAPSHOT</version>
<modules>
<module>redis-util</module>
<module>auth</module>
<module>user</module>
<module>shiro</module>
<module>spring</module>
<module>dubbo</module>
<module>bigsys-redis</module>
<module>bigsys-auth</module>
<module>bigsys-user</module>
<module>bigsys-shiro</module>
<module>bigsys-spring</module>
<module>bigsys-dubbo</module>
<module>bigsys-webdemo</module>
</modules>
......
package com.paul;
import junit.framework.Test;
import junit.framework.TestCase;
import junit.framework.TestSuite;
/**
* Unit test for simple App.
*/
public class AppTest
extends TestCase
{
/**
* Create the test case
*
* @param testName name of the test case
*/
public AppTest( String testName )
{
super( testName );
}
/**
* @return the suite of tests being tested
*/
public static Test suite()
{
return new TestSuite( AppTest.class );
}
/**
* Rigourous Test :-)
*/
public void testApp()
{
assertTrue( true );
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment