-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 90b3a6b
Showing
51 changed files
with
4,454 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<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"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<groupId>com.dreawer</groupId> | ||
<artifactId>shopcenter</artifactId> | ||
<version>0.0.1-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>shopcenter</name> | ||
<description>Demo project for Spring Boot</description> | ||
|
||
<parent> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-parent</artifactId> | ||
<version>1.5.13.RELEASE</version> | ||
<relativePath/> <!-- lookup parent from repository --> | ||
</parent> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<java.version>1.8</java.version> | ||
<spring-cloud.version>Dalston.SR1</spring-cloud.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-data-redis</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-jdbc</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-web</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.mybatis.spring.boot</groupId> | ||
<artifactId>mybatis-spring-boot-starter</artifactId> | ||
<version>1.3.2</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-config</artifactId> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>mysql</groupId> | ||
<artifactId>mysql-connector-java</artifactId> | ||
<scope>runtime</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-starter-test</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
|
||
<dependencyManagement> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.springframework.cloud</groupId> | ||
<artifactId>spring-cloud-dependencies</artifactId> | ||
<version>${spring-cloud.version}</version> | ||
<type>pom</type> | ||
<scope>import</scope> | ||
</dependency> | ||
</dependencies> | ||
</dependencyManagement> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.springframework.boot</groupId> | ||
<artifactId>spring-boot-maven-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
<resources> | ||
<resource> | ||
<directory>src/main/java</directory> | ||
<includes> | ||
<include>**/**/*.properties</include> | ||
<include>**/*.xml</include> | ||
</includes> | ||
<filtering>false</filtering> | ||
</resource> | ||
<resource> | ||
<directory>src/main/resources</directory> | ||
<!--<excludes>--> | ||
<!--<exclude>application.properties</exclude>--> | ||
<!--</excludes>--> | ||
</resource> | ||
</resources> | ||
</build> | ||
|
||
<repositories> | ||
<repository> | ||
<id>spring-snapshots</id> | ||
<name>Spring Snapshots</name> | ||
<url>https://repo.spring.io/snapshot</url> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
<repository> | ||
<id>spring-milestones</id> | ||
<name>Spring Milestones</name> | ||
<url>https://repo.spring.io/milestone</url> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
|
||
<pluginRepositories> | ||
<pluginRepository> | ||
<id>spring-snapshots</id> | ||
<name>Spring Snapshots</name> | ||
<url>https://repo.spring.io/snapshot</url> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</pluginRepository> | ||
<pluginRepository> | ||
<id>spring-milestones</id> | ||
<name>Spring Milestones</name> | ||
<url>https://repo.spring.io/milestone</url> | ||
<snapshots> | ||
<enabled>false</enabled> | ||
</snapshots> | ||
</pluginRepository> | ||
</pluginRepositories> | ||
<distributionManagement> | ||
<repository> | ||
<id>releases</id> | ||
<name>Nexus-releases-repositories</name> | ||
<url>http://172.16.138.103:8081/repository/maven-releases/</url> | ||
</repository> | ||
<snapshotRepository> | ||
<id>snapshots</id> | ||
<name>Nexus-snapshots-repositories</name> | ||
<url>http://172.16.138.103:8081/repository/maven-snapshots/</url> | ||
</snapshotRepository> | ||
</distributionManagement> | ||
<!----> | ||
|
||
</project> |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/dreawer/shopcenter/ShopcenterApplication.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package com.dreawer.shopcenter; | ||
|
||
import org.springframework.boot.SpringApplication; | ||
import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
|
||
@SpringBootApplication | ||
public class ShopcenterApplication { | ||
|
||
public static void main(String[] args) { | ||
SpringApplication.run(ShopcenterApplication.class, args); | ||
} | ||
} |
129 changes: 129 additions & 0 deletions
129
src/main/java/com/dreawer/shopcenter/domain/Address.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
package com.dreawer.shopcenter.domain; | ||
|
||
import com.dreawer.dream.domain.BaseDomain; | ||
import com.dreawer.user.domain.User; | ||
|
||
import java.sql.Timestamp; | ||
|
||
/** | ||
* <CODE>Address</CODE> | ||
* 地址实体类 | ||
* @author fenrir | ||
* @Date 17-12-25 | ||
*/ | ||
public class Address extends BaseDomain{ | ||
|
||
private static final long serialVersionUID = -3040562912070693905L; | ||
|
||
private String consignee = null; | ||
|
||
private String contact = null; | ||
|
||
private String shippingAddress = null; | ||
|
||
private String address = null; | ||
|
||
private String postcode = null; | ||
|
||
private Boolean isDefault = null; | ||
|
||
private String storeId = null; | ||
|
||
public String getStoreId() { | ||
return storeId; | ||
} | ||
|
||
public void setStoreId(String storeId) { | ||
this.storeId = storeId; | ||
} | ||
|
||
private User creater = null; // 创建者 | ||
|
||
private Timestamp createTime = null; // 创建时间 | ||
|
||
private User updater = null; // 更新者 | ||
|
||
private Timestamp updateTime = null; // 更新时间 | ||
|
||
public User getCreater() { | ||
return creater; | ||
} | ||
|
||
public void setCreater(User creater) { | ||
this.creater = creater; | ||
} | ||
|
||
public Timestamp getCreateTime() { | ||
return createTime; | ||
} | ||
|
||
public void setCreateTime(Timestamp createTime) { | ||
this.createTime = createTime; | ||
} | ||
|
||
public User getUpdater() { | ||
return updater; | ||
} | ||
|
||
public void setUpdater(User updater) { | ||
this.updater = updater; | ||
} | ||
|
||
public Timestamp getUpdateTime() { | ||
return updateTime; | ||
} | ||
|
||
public void setUpdateTime(Timestamp updateTime) { | ||
this.updateTime = updateTime; | ||
} | ||
|
||
public Boolean getIsDefault() { | ||
return isDefault; | ||
} | ||
|
||
public void setIsDefault(Boolean isDefault) { | ||
this.isDefault = isDefault; | ||
} | ||
|
||
public String getConsignee() { | ||
return consignee; | ||
} | ||
|
||
public void setConsignee(String consignee) { | ||
this.consignee = consignee; | ||
} | ||
|
||
public String getContact() { | ||
return contact; | ||
} | ||
|
||
public void setContact(String contact) { | ||
this.contact = contact; | ||
} | ||
|
||
public String getShippingAddress() { | ||
return shippingAddress; | ||
} | ||
|
||
public void setShippingAddress(String shippingAddress) { | ||
this.shippingAddress = shippingAddress; | ||
} | ||
|
||
public String getAddress() { | ||
return address; | ||
} | ||
|
||
public void setAddress(String address) { | ||
this.address = address; | ||
} | ||
|
||
public String getPostcode() { | ||
return postcode; | ||
} | ||
|
||
public void setPostcode(String postcode) { | ||
this.postcode = postcode; | ||
} | ||
|
||
|
||
} |
Oops, something went wrong.