From b09d00e4fe7a0a23418c8e09a823b74f0b395b79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=AD=9D=E9=BE=99?= Date: Mon, 6 Mar 2023 12:42:31 +0800 Subject: [PATCH] update --- pom.xml | 187 ++++++++++++++++++ .../reagent/ReagentManagmentApplication.java | 37 ++++ src/main/resources/banner.txt | 12 ++ src/main/resources/bootstrap.yml | 30 +++ 4 files changed, 266 insertions(+) create mode 100644 pom.xml create mode 100644 src/main/java/digital/laboratory/platform/reagent/ReagentManagmentApplication.java create mode 100644 src/main/resources/banner.txt create mode 100644 src/main/resources/bootstrap.yml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..f053c0f --- /dev/null +++ b/pom.xml @@ -0,0 +1,187 @@ + + + 4.0.0 + + digital.laboratory.platform + DigitalLaboratoryPlatform + 2022.10.11-snapshots + + + dlp-utilities + jar + DLP 的试剂耗材管理 + + 1.8 + 1.8 + 5.7.1 + + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-discovery + 2021.1 + + + + + + com.alibaba.cloud + spring-cloud-starter-alibaba-nacos-config + 2021.1 + + + + + digital.laboratory.platform + dlp-common-swagger + + + + org.springframework.boot + spring-boot-starter-web + 2.5.5 + + + + digital.laboratory.platform + dlp-common-feign + 2022.10.11-snapshots + + + + + digital.laboratory.platform + dlp-common-security + 2022.10.11-snapshots + + + + + org.springframework.boot + spring-boot-starter-jdbc + + + + + + + + + org.springframework.boot + spring-boot-starter-test + test + + + + + digital.laboratory.platform + dlp-common-core + 2022.10.11-snapshots + + + + + + + mysql + mysql-connector-java + 8.0.28 + + + + + org.springframework.boot + spring-boot-starter-undertow + + + + + digital.laboratory.platform + dlp-common-log + 2022.10.11-snapshots + + + + + digital.laboratory.platform + dlp-admin-api + 2022.10.11-snapshots + + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + -Xlint:unchecked + + 3.8.1 + + + org.springframework.boot + spring-boot-maven-plugin + + + io.fabric8 + docker-maven-plugin + + + + org.codehaus.mojo + build-helper-maven-plugin + 3.3.0 + + + timestamp-property + + timestamp-property + + + timestamp + yyyy-MM-dd HH:mm:ss + zh_CN + Asia/Shanghai + + + + + + + + maven-resources-plugin + 3.1.0 + + + copy-resource-one + install + + copy-resources + + + ${basedir}/../out + + + ${basedir}/target + + ${project.artifactId}.jar + + + + + + + + + + + + diff --git a/src/main/java/digital/laboratory/platform/reagent/ReagentManagmentApplication.java b/src/main/java/digital/laboratory/platform/reagent/ReagentManagmentApplication.java new file mode 100644 index 0000000..e90583a --- /dev/null +++ b/src/main/java/digital/laboratory/platform/reagent/ReagentManagmentApplication.java @@ -0,0 +1,37 @@ +package digital.laboratory.platform.reagent; + +import digital.laboratory.platform.common.feign.annotation.EnableDLPFeignClients; +import digital.laboratory.platform.common.security.annotation.EnableDLPResourceServer; +import digital.laboratory.platform.common.swagger.annotation.EnableDLPSwagger2; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.client.discovery.EnableDiscoveryClient; +import org.springframework.context.annotation.Configuration; + +@Configuration // ??? +@EnableDLPSwagger2 +@EnableDLPFeignClients +@EnableDiscoveryClient +@EnableDLPResourceServer +@SpringBootApplication(scanBasePackages="digital.laboratory.platform") +public class ReagentManagmentApplication { + + public static void main(String[] args) { + SpringApplication.run(ReagentManagmentApplication.class, args); + + + // System.out.println("\n\n\n"); + // System.out.println("-----------------------------"); + // System.out.println("end of Spring Application main()"); + // System.out.println("-----------------------------"); + // System.out.println("\n\n\n"); + + + } + + // @Bean + // RestTemplate restTemplate() { + // return new RestTemplate(); + // } + // +} diff --git a/src/main/resources/banner.txt b/src/main/resources/banner.txt new file mode 100644 index 0000000..e7bbecb --- /dev/null +++ b/src/main/resources/banner.txt @@ -0,0 +1,12 @@ +${AnsiColor.BRIGHT_GREEN} + +试剂耗材管理 +试剂耗材管理 +试剂耗材管理 + +试剂耗材管理(Reagent Managment) + +版本: ${version} +创建: ${timestamp} + +${AnsiColor.DEFAULT} diff --git a/src/main/resources/bootstrap.yml b/src/main/resources/bootstrap.yml new file mode 100644 index 0000000..0174058 --- /dev/null +++ b/src/main/resources/bootstrap.yml @@ -0,0 +1,30 @@ +logging: + level: + digital.laboratory.platform.camera.mapper: debug + +server: + port: 5207 + +mybatis: + mapper-locations: classpath*:mapper/*.xml + +spring: + application: + name: @artifactId@ + cloud: + nacos: + discovery: + server-addr: ${NACOS_HOST:dlp-nacos}:${NACOS_PORT:8848} + config: + server-addr: ${spring.cloud.nacos.discovery.server-addr} + file-extension: yml + shared-configs: + - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension} + profiles: + active: @profiles.active@ + datasource: + type: com.zaxxer.hikari.HikariDataSource + driver-class-name: com.mysql.cj.jdbc.Driver + username: dlp + password: 7990016 + url: jdbc:mysql://dlp-mysql:3306/dlp_reagent_managment?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowMultiQueries=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true&allowPublicKeyRetrieval=true