udims打包问题

dev
anthonywj 1 year ago
parent 4e82b6a1a8
commit 9543dbf813

@ -137,11 +137,11 @@
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
<!-- jar包使用 -->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-undertow</artifactId>-->
<!-- </dependency>-->
<!-- jar包使用 -->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-undertow</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
@ -317,15 +317,22 @@
</dependencies>
<build>
<finalName>UDIC_UDI_Server</finalName>
<finalName>udims</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<mainClass>com.glxp.udi.ApiAdminApplication</mainClass>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<source>11</source>
<target>11</target>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

@ -2,15 +2,23 @@ package com.glxp.udi;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@EnableTransactionManagement
@SpringBootApplication
public class ApiAdminApplication {
public class ApiAdminApplication extends SpringBootServletInitializer {
public static void main(String[] args) {
SpringApplication.run(ApiAdminApplication.class, args);
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
return builder.sources(ApiAdminApplication.class);
}
}

@ -12,10 +12,8 @@ import org.springframework.boot.actuate.endpoint.web.annotation.ServletEndpoints
import org.springframework.boot.actuate.endpoint.web.servlet.WebMvcEndpointHandlerMapping;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Profile;
import org.springframework.core.env.Environment;
import springfox.bean.validators.configuration.BeanValidatorPluginsConfiguration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;

@ -3,14 +3,13 @@ spring:
pathmatch:
matching-strategy: ant_path_matcher
datasource:
url: jdbc:mysql://127.0.0.1:3333/udims_cg?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://127.0.0.1:3306/udims_cg?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: 123456
redis:
database: 11
host: 127.0.0.1
port: 6377
password: 123456
port: 6379
jedis:
pool:
max-active: 8

@ -1,15 +1,15 @@
spring:
mvc:
pathmatch:
matching-strategy: ant_path_matcher
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://127.0.0.1:3306/udims?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
url: jdbc:mysql://127.0.0.1:3306/udims_cg?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: mysql@2020
password: 123456
redis:
database: 4
database: 11
host: 127.0.0.1
port: 6379
password:
jedis:
pool:
max-active: 8
@ -17,19 +17,33 @@ spring:
max-idle: 8
min-idle: 0
boot:
admin:
client:
username: admin
password: admin
url: http://localhost:8888
instance:
prefer-ip: true
management:
endpoint:
health:
show-details: always
logfile:
external-file: ../logs/UDIC_UDI_Server/web_debug.log
endpoints:
web:
exposure:
include: "*"
logging:
level:
org.springframework.data.mongodb.core.MongoTemplate: debug
com.glxp.udi.admin.dao: debug
#mips服务地址
UDIC_MIPSDOWNLOAD_URL: http://127.0.0.1:8080/UDIC_MIPSDL_Server
UCLOD_SERVER_URL: http://127.0.0.1:9997
UDI_SERVER_URL: https://www.udims.com/UDI_DL_Server_test
COOR_UPLOAD_ORDER: http://127.0.0.1:9987/udi/upload
#同步库接口调用地址相关信息 https://www.udims.com/UDI_DL_Server_test
UDI_SERVER:
url: https://www.udims.com/UDI_DL_Server_test
connectTimeout: 2000
@ -37,7 +51,7 @@ UDI_SERVER:
followRedirects: false
key: 17fbb8f8782c11ecaec9902e16f86c51
UDI_KEY: 6b137c66-6286-46c6-8efa-c2f5dd9237df
file_path: D:/1s/udims
# UDI数据下载
UDI_KEY: 6b137c66-6286-46c6-8efa-c2f5dd9237df
Loading…
Cancel
Save