Przeglądaj źródła

建立项目框架

zhuoning 4 lat temu
rodzic
commit
2a0bc5e86b

+ 30 - 59
.gitignore

@@ -1,62 +1,33 @@
-# ---> Java
-*.class
-
-# Mobile Tools for Java (J2ME)
-.mtj.tmp/
-
-# Package Files #
-*.jar
-*.war
-*.ear
-
-# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
-hs_err_pid*
-
-# ---> JetBrains
-# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
-
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
 *.iml
-
-## Directory-based project format:
-.idea/
-# if you remove the above rule, at least ignore the following:
-
-# User-specific stuff:
-# .idea/workspace.xml
-# .idea/tasks.xml
-# .idea/dictionaries
-
-# Sensitive or high-churn files:
-# .idea/dataSources.ids
-# .idea/dataSources.xml
-# .idea/sqlDataSources.xml
-# .idea/dynamic.xml
-# .idea/uiDesigner.xml
-
-# Gradle:
-# .idea/gradle.xml
-# .idea/libraries
-
-# Mongo Explorer plugin:
-# .idea/mongoSettings.xml
-
-## File-based project format:
 *.ipr
-*.iws
-
-## Plugin-specific files:
-
-# IntelliJ
-/out/
-
-# mpeltonen/sbt-idea plugin
-.idea_modules/
-
-# JIRA plugin
-atlassian-ide-plugin.xml
-
-# Crashlytics plugin (for Android Studio and IntelliJ)
-com_crashlytics_export_strings.xml
-crashlytics.properties
-crashlytics-build.properties
 
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/

+ 15 - 0
basedata/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>sunite-sheep</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>basedata</artifactId>
+
+
+</project>

+ 16 - 0
basedata/src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: butcher.butcher
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

+ 2 - 0
basedata/src/main/resources/application.properties

@@ -0,0 +1,2 @@
+spring.profiles.active=dev
+multipart.enabled=true

+ 15 - 0
butcher.butcher/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>sunite-sheep</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>butcher.butcher</artifactId>
+
+
+</project>

+ 16 - 0
butcher.butcher/src/main/java/com/huimv/butcher/ButcherApplication.java

@@ -0,0 +1,16 @@
+package com.huimv.butcher;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
+import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
+
+@SpringBootApplication
+//@SpringBootApplication(exclude={DataSourceAutoConfiguration.class, HibernateJpaAutoConfiguration.class})
+public class ButcherApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(ButcherApplication.class, args);
+    }
+
+}

+ 16 - 0
butcher.butcher/src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: butcher.butcher
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

+ 2 - 0
butcher.butcher/src/main/resources/application.properties

@@ -0,0 +1,2 @@
+spring.profiles.active=dev
+multipart.enabled=true

+ 15 - 0
butcher.purchase/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>sunite-sheep</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>butcher.purchase</artifactId>
+
+
+</project>

+ 16 - 0
butcher.purchase/src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: butcher.butcher
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

+ 2 - 0
butcher.purchase/src/main/resources/application.properties

@@ -0,0 +1,2 @@
+spring.profiles.active=dev
+multipart.enabled=true

+ 15 - 0
huimv.core/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>sunite-sheep</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>huimv.core</artifactId>
+
+
+</project>

+ 16 - 0
huimv.core/src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: butcher.butcher
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

+ 2 - 0
huimv.core/src/main/resources/application.properties

@@ -0,0 +1,2 @@
+spring.profiles.active=dev
+multipart.enabled=true

+ 15 - 0
processing.further/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>sunite-sheep</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>processing.further</artifactId>
+
+
+</project>

+ 16 - 0
processing.further/src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: butcher.butcher
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

+ 2 - 0
processing.further/src/main/resources/application.properties

@@ -0,0 +1,2 @@
+spring.profiles.active=dev
+multipart.enabled=true

+ 15 - 0
processing.preform/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>sunite-sheep</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>processing.preform</artifactId>
+
+
+</project>

+ 16 - 0
processing.preform/src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: butcher.butcher
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

+ 2 - 0
processing.preform/src/main/resources/application.properties

@@ -0,0 +1,2 @@
+spring.profiles.active=dev
+multipart.enabled=true

+ 15 - 0
sales.sales/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>sunite-sheep</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>sales.sales</artifactId>
+
+
+</project>

+ 16 - 0
sales.sales/src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: butcher.butcher
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

+ 2 - 0
sales.sales/src/main/resources/application.properties

@@ -0,0 +1,2 @@
+spring.profiles.active=dev
+multipart.enabled=true

+ 15 - 0
sales.transport/pom.xml

@@ -0,0 +1,15 @@
+<?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">
+    <parent>
+        <artifactId>sunite-sheep</artifactId>
+        <groupId>com.huimv</groupId>
+        <version>0.0.1-SNAPSHOT</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>sales.transport</artifactId>
+
+
+</project>

+ 16 - 0
sales.transport/src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: butcher.butcher
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect

+ 2 - 0
sales.transport/src/main/resources/application.properties

@@ -0,0 +1,2 @@
+spring.profiles.active=dev
+multipart.enabled=true

+ 16 - 0
src/main/resources/application-dev.yml

@@ -0,0 +1,16 @@
+server:
+  port: 8088
+spring:
+  application:
+    name: sunite-sheep
+
+  #------DataSource-----
+  datasource:
+    url: jdbc:mysql://192.168.1.7:3306/farm_huyang_db?useUnicode=true&characterEncoding=UTF-8&useSSL=false&autoReconnect=true&serverTimezone=Asia/Shanghai
+    username: root
+    password: hm123456
+    driver-class-name: com.mysql.cj.jdbc.Driver
+  jpa:
+    hibernate:
+      ddl-auto: update
+    database-platform: org.hibernate.dialect.MySQL5InnoDBDialect