正在显示
4 个修改的文件
包含
273 行增加
和
0 行删除
.gitignore
0 → 100644
| 1 | +HELP.md | ||
| 2 | +target/ | ||
| 3 | +!.mvn/wrapper/maven-wrapper.jar | ||
| 4 | +!**/src/main/** | ||
| 5 | +!**/src/test/** | ||
| 6 | + | ||
| 7 | +### STS ### | ||
| 8 | +.apt_generated | ||
| 9 | +.classpath | ||
| 10 | +.factorypath | ||
| 11 | +.project | ||
| 12 | +.settings | ||
| 13 | +.springBeans | ||
| 14 | +.sts4-cache | ||
| 15 | + | ||
| 16 | +### IntelliJ IDEA ### | ||
| 17 | +.idea | ||
| 18 | +*.iws | ||
| 19 | +*.iml | ||
| 20 | +*.ipr | ||
| 21 | + | ||
| 22 | +### NetBeans ### | ||
| 23 | +/nbproject/private/ | ||
| 24 | +/nbbuild/ | ||
| 25 | +/dist/ | ||
| 26 | +/nbdist/ | ||
| 27 | +/.nb-gradle/ | ||
| 28 | +build/ | ||
| 29 | + | ||
| 30 | +### VS Code ### | ||
| 31 | +.vscode/ |
pom.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
| 3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
| 4 | + <modelVersion>4.0.0</modelVersion> | ||
| 5 | + <parent> | ||
| 6 | + <groupId>org.springframework.boot</groupId> | ||
| 7 | + <artifactId>spring-boot-starter-parent</artifactId> | ||
| 8 | + <version>2.1.7.RELEASE</version> | ||
| 9 | + <relativePath/> <!-- lookup parent from repository --> | ||
| 10 | + </parent> | ||
| 11 | + <groupId>com.sunyo</groupId> | ||
| 12 | + <artifactId>cgonms_arrival</artifactId> | ||
| 13 | + <version>0.0.1-SNAPSHOT</version> | ||
| 14 | + <name>cgonms_arrival</name> | ||
| 15 | + <description>出港服务新舱单</description> | ||
| 16 | + | ||
| 17 | + <properties> | ||
| 18 | + <java.version>1.8</java.version> | ||
| 19 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
| 20 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
| 21 | + <spring-cloud.version>Greenwich.SR2</spring-cloud.version> | ||
| 22 | + </properties> | ||
| 23 | + | ||
| 24 | + <dependencies> | ||
| 25 | + <!-- SpringBoot start --> | ||
| 26 | + <dependency> | ||
| 27 | + <groupId>org.springframework.boot</groupId> | ||
| 28 | + <artifactId>spring-boot-starter</artifactId> | ||
| 29 | + </dependency> | ||
| 30 | + | ||
| 31 | + <dependency> | ||
| 32 | + <groupId>org.springframework.boot</groupId> | ||
| 33 | + <artifactId>spring-boot-starter-web</artifactId> | ||
| 34 | + </dependency> | ||
| 35 | + | ||
| 36 | + <!-- 引入websocket依赖 --> | ||
| 37 | + <dependency> | ||
| 38 | + <groupId>org.springframework.boot</groupId> | ||
| 39 | + <artifactId>spring-boot-starter-websocket</artifactId> | ||
| 40 | + </dependency> | ||
| 41 | + <!-- SpringBoot end --> | ||
| 42 | + | ||
| 43 | + <!-- Security start --> | ||
| 44 | + <dependency> | ||
| 45 | + <groupId>org.springframework.boot</groupId> | ||
| 46 | + <artifactId>spring-boot-starter-security</artifactId> | ||
| 47 | + </dependency> | ||
| 48 | + <!-- Security end --> | ||
| 49 | + | ||
| 50 | + <!-- SpringCloud start --> | ||
| 51 | + <dependency> | ||
| 52 | + <groupId>org.springframework.cloud</groupId> | ||
| 53 | + <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId> | ||
| 54 | + </dependency> | ||
| 55 | + | ||
| 56 | + <dependency> | ||
| 57 | + <groupId>org.springframework.cloud</groupId> | ||
| 58 | + <artifactId>spring-cloud-starter-netflix-hystrix</artifactId> | ||
| 59 | + </dependency> | ||
| 60 | + | ||
| 61 | + <dependency> | ||
| 62 | + <groupId>org.springframework.cloud</groupId> | ||
| 63 | + <artifactId>spring-cloud-starter-openfeign</artifactId> | ||
| 64 | + </dependency> | ||
| 65 | + | ||
| 66 | + <dependency> | ||
| 67 | + <groupId>org.springframework.cloud</groupId> | ||
| 68 | + <artifactId>spring-cloud-starter-zipkin</artifactId> | ||
| 69 | + </dependency> | ||
| 70 | + | ||
| 71 | + <dependency> | ||
| 72 | + <groupId>de.codecentric</groupId> | ||
| 73 | + <artifactId>spring-boot-admin-starter-client</artifactId> | ||
| 74 | + <version>2.2.0</version> | ||
| 75 | + </dependency> | ||
| 76 | + <dependency> | ||
| 77 | + <groupId>org.springframework.boot</groupId> | ||
| 78 | + <artifactId>spring-boot-starter-actuator</artifactId> | ||
| 79 | + </dependency> | ||
| 80 | + <!-- SpringCloud end --> | ||
| 81 | + | ||
| 82 | + <!-- database start --> | ||
| 83 | + <dependency> | ||
| 84 | + <groupId>org.mybatis.spring.boot</groupId> | ||
| 85 | + <artifactId>mybatis-spring-boot-starter</artifactId> | ||
| 86 | + <version>2.1.1</version> | ||
| 87 | + </dependency> | ||
| 88 | + | ||
| 89 | + <dependency> | ||
| 90 | + <groupId>com.github.pagehelper</groupId> | ||
| 91 | + <artifactId>pagehelper-spring-boot-starter</artifactId> | ||
| 92 | + <version>1.2.12</version> | ||
| 93 | + </dependency> | ||
| 94 | + | ||
| 95 | + <dependency> | ||
| 96 | + <groupId>com.alibaba</groupId> | ||
| 97 | + <artifactId>druid-spring-boot-starter</artifactId> | ||
| 98 | + <version>1.1.9</version> | ||
| 99 | + </dependency> | ||
| 100 | + <!-- database end --> | ||
| 101 | + | ||
| 102 | + <!-- tools start --> | ||
| 103 | + <dependency> | ||
| 104 | + <groupId>cn.hutool</groupId> | ||
| 105 | + <artifactId>hutool-all</artifactId> | ||
| 106 | + <version>4.0.12</version> | ||
| 107 | + </dependency> | ||
| 108 | + <!-- excel导出--> | ||
| 109 | + <dependency> | ||
| 110 | + <groupId>org.apache.poi</groupId> | ||
| 111 | + <artifactId>poi-ooxml</artifactId> | ||
| 112 | + <version>4.1.0</version> | ||
| 113 | + </dependency> | ||
| 114 | + <!-- excel导出 end--> | ||
| 115 | + <dependency> | ||
| 116 | + <groupId>org.projectlombok</groupId> | ||
| 117 | + <artifactId>lombok</artifactId> | ||
| 118 | + <optional>true</optional> | ||
| 119 | + </dependency> | ||
| 120 | + | ||
| 121 | + <dependency> | ||
| 122 | + <groupId>log4j</groupId> | ||
| 123 | + <artifactId>log4j</artifactId> | ||
| 124 | + <version>1.2.17</version> | ||
| 125 | + </dependency> | ||
| 126 | + | ||
| 127 | + <dependency> | ||
| 128 | + <groupId>io.springfox</groupId> | ||
| 129 | + <artifactId>springfox-swagger2</artifactId> | ||
| 130 | + <version>2.9.2</version> | ||
| 131 | + </dependency> | ||
| 132 | + <dependency> | ||
| 133 | + <groupId>io.springfox</groupId> | ||
| 134 | + <artifactId>springfox-swagger-ui</artifactId> | ||
| 135 | + <version>2.9.2</version> | ||
| 136 | + </dependency> | ||
| 137 | + <dependency> | ||
| 138 | + <groupId>io.swagger</groupId> | ||
| 139 | + <artifactId>swagger-annotations</artifactId> | ||
| 140 | + <version>1.5.22</version> | ||
| 141 | + </dependency> | ||
| 142 | + <dependency> | ||
| 143 | + <groupId>io.swagger</groupId> | ||
| 144 | + <artifactId>swagger-models</artifactId> | ||
| 145 | + <version>1.5.22</version> | ||
| 146 | + </dependency> | ||
| 147 | + | ||
| 148 | + <!-- 添加Gson依赖 --> | ||
| 149 | + <dependency> | ||
| 150 | + <groupId>com.google.code.gson</groupId> | ||
| 151 | + <artifactId>gson</artifactId> | ||
| 152 | + </dependency> | ||
| 153 | + <dependency> | ||
| 154 | + <groupId>joda-time</groupId> | ||
| 155 | + <artifactId>joda-time</artifactId> | ||
| 156 | + <version>2.10.5</version> | ||
| 157 | + </dependency> | ||
| 158 | + <!--定时任务quartz--> | ||
| 159 | + <dependency> | ||
| 160 | + <groupId>org.springframework.boot</groupId> | ||
| 161 | + <artifactId>spring-boot-starter-quartz</artifactId> | ||
| 162 | + </dependency> | ||
| 163 | + <!-- tools end --> | ||
| 164 | + | ||
| 165 | + <!-- test start --> | ||
| 166 | + <dependency> | ||
| 167 | + <groupId>org.springframework.boot</groupId> | ||
| 168 | + <artifactId>spring-boot-starter-test</artifactId> | ||
| 169 | + <scope>test</scope> | ||
| 170 | + <exclusions> | ||
| 171 | + <exclusion> | ||
| 172 | + <groupId>org.junit.vintage</groupId> | ||
| 173 | + <artifactId>junit-vintage-engine</artifactId> | ||
| 174 | + </exclusion> | ||
| 175 | + </exclusions> | ||
| 176 | + </dependency> | ||
| 177 | + <!-- test end --> | ||
| 178 | + </dependencies> | ||
| 179 | + | ||
| 180 | + <dependencyManagement> | ||
| 181 | + <dependencies> | ||
| 182 | + <dependency> | ||
| 183 | + <groupId>org.springframework.cloud</groupId> | ||
| 184 | + <artifactId>spring-cloud-dependencies</artifactId> | ||
| 185 | + <version>${spring-cloud.version}</version> | ||
| 186 | + <type>pom</type> | ||
| 187 | + <scope>import</scope> | ||
| 188 | + </dependency> | ||
| 189 | + </dependencies> | ||
| 190 | + </dependencyManagement> | ||
| 191 | + | ||
| 192 | + <build> | ||
| 193 | + <plugins> | ||
| 194 | + <plugin> | ||
| 195 | + <groupId>org.springframework.boot</groupId> | ||
| 196 | + <artifactId>spring-boot-maven-plugin</artifactId> | ||
| 197 | + <configuration> | ||
| 198 | + <mainClass>com.sunyo.wlpt.cgonms.provide.CgonmsProvideApplication</mainClass> | ||
| 199 | + </configuration> | ||
| 200 | + </plugin> | ||
| 201 | + </plugins> | ||
| 202 | + </build> | ||
| 203 | + | ||
| 204 | + <repositories> | ||
| 205 | + <repository> | ||
| 206 | + <id>spring-snapshots</id> | ||
| 207 | + <name>Spring Snapshots</name> | ||
| 208 | + <url>https://repo.spring.io/snapshot</url> | ||
| 209 | + <snapshots> | ||
| 210 | + <enabled>true</enabled> | ||
| 211 | + </snapshots> | ||
| 212 | + </repository> | ||
| 213 | + <repository> | ||
| 214 | + <id>spring-milestones</id> | ||
| 215 | + <name>Spring Milestones</name> | ||
| 216 | + <url>https://repo.spring.io/milestone</url> | ||
| 217 | + <snapshots> | ||
| 218 | + <enabled>false</enabled> | ||
| 219 | + </snapshots> | ||
| 220 | + </repository> | ||
| 221 | + </repositories> | ||
| 222 | + | ||
| 223 | +</project> |
| 1 | +package com.sunyo.wlpt.cgonms.arrival; | ||
| 2 | + | ||
| 3 | +import org.springframework.boot.SpringApplication; | ||
| 4 | +import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
| 5 | + | ||
| 6 | +/** | ||
| 7 | + * @author 子诚 | ||
| 8 | + * Description:服务程序入口类 | ||
| 9 | + * 时间:2020/6/9 11:45 | ||
| 10 | + */ | ||
| 11 | +@SpringBootApplication | ||
| 12 | +public class CgonmsArrivalApplication { | ||
| 13 | + | ||
| 14 | + public static void main(String[] args) { | ||
| 15 | + SpringApplication.run(CgonmsArrivalApplication.class, args); | ||
| 16 | + } | ||
| 17 | + | ||
| 18 | +} |
src/main/resources/application.properties
0 → 100644
| 1 | + |
-
请 注册 或 登录 后发表评论