parent
71075c2980
commit
b09d00e4fe
@ -0,0 +1,187 @@ |
|||||||
|
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
||||||
|
<modelVersion>4.0.0</modelVersion> |
||||||
|
<parent> |
||||||
|
<groupId>digital.laboratory.platform</groupId> |
||||||
|
<artifactId>DigitalLaboratoryPlatform</artifactId> |
||||||
|
<version>2022.10.11-snapshots</version> |
||||||
|
</parent> |
||||||
|
|
||||||
|
<artifactId>dlp-utilities</artifactId> |
||||||
|
<packaging>jar</packaging> |
||||||
|
<description>DLP 的试剂耗材管理</description> |
||||||
|
<properties> |
||||||
|
<maven.compiler.target>1.8</maven.compiler.target> |
||||||
|
<maven.compiler.source>1.8</maven.compiler.source> |
||||||
|
<junit.version>5.7.1</junit.version> |
||||||
|
</properties> |
||||||
|
|
||||||
|
<dependencies> |
||||||
|
<!--注册中心客户端--> |
||||||
|
<!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-discovery --> |
||||||
|
<dependency> |
||||||
|
<groupId>com.alibaba.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId> |
||||||
|
<version>2021.1</version> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!--配置中心客户端--> |
||||||
|
<!-- https://mvnrepository.com/artifact/com.alibaba.cloud/spring-cloud-starter-alibaba-nacos-config --> |
||||||
|
<dependency> |
||||||
|
<groupId>com.alibaba.cloud</groupId> |
||||||
|
<artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId> |
||||||
|
<version>2021.1</version> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!-- swagger --> |
||||||
|
<dependency> |
||||||
|
<groupId>digital.laboratory.platform</groupId> |
||||||
|
<artifactId>dlp-common-swagger</artifactId> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
<artifactId>spring-boot-starter-web</artifactId> |
||||||
|
<version>2.5.5</version> |
||||||
|
</dependency> |
||||||
|
<!--断路器依赖--> |
||||||
|
<dependency> |
||||||
|
<groupId>digital.laboratory.platform</groupId> |
||||||
|
<artifactId>dlp-common-feign</artifactId> |
||||||
|
<version>2022.10.11-snapshots</version> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!--security--> |
||||||
|
<dependency> |
||||||
|
<groupId>digital.laboratory.platform</groupId> |
||||||
|
<artifactId>dlp-common-security</artifactId> |
||||||
|
<version>2022.10.11-snapshots</version> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!--JDBC相关--> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
<artifactId>spring-boot-starter-jdbc</artifactId> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!-- <dependency>--> |
||||||
|
<!-- <groupId>org.springframework.boot</groupId>--> |
||||||
|
<!-- <artifactId>spring-boot-starter-thymeleaf</artifactId>--> |
||||||
|
<!-- </dependency>--> |
||||||
|
|
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
<artifactId>spring-boot-starter-test</artifactId> |
||||||
|
<scope>test</scope> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!--core 工具类--> |
||||||
|
<dependency> |
||||||
|
<groupId>digital.laboratory.platform</groupId> |
||||||
|
<artifactId>dlp-common-core</artifactId> |
||||||
|
<version>2022.10.11-snapshots</version> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
|
||||||
|
<!-- 数据库 mysql依赖 --> |
||||||
|
<!-- https://mvnrepository.com/artifact/mysql/mysql-connector-java --> |
||||||
|
<dependency> |
||||||
|
<groupId>mysql</groupId> |
||||||
|
<artifactId>mysql-connector-java</artifactId> |
||||||
|
<version>8.0.28</version> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!--undertow容器--> |
||||||
|
<dependency> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
<artifactId>spring-boot-starter-undertow</artifactId> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!-- log --> |
||||||
|
<dependency> |
||||||
|
<groupId>digital.laboratory.platform</groupId> |
||||||
|
<artifactId>dlp-common-log</artifactId> |
||||||
|
<version>2022.10.11-snapshots</version> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
<!-- 业务数据的依赖 --> |
||||||
|
<dependency> |
||||||
|
<groupId>digital.laboratory.platform</groupId> |
||||||
|
<artifactId>dlp-admin-api</artifactId> |
||||||
|
<version>2022.10.11-snapshots</version> |
||||||
|
</dependency> |
||||||
|
|
||||||
|
|
||||||
|
</dependencies> |
||||||
|
|
||||||
|
<build> |
||||||
|
<plugins> |
||||||
|
<plugin> |
||||||
|
<groupId>org.apache.maven.plugins</groupId> |
||||||
|
<artifactId>maven-compiler-plugin</artifactId> |
||||||
|
<configuration> |
||||||
|
<compilerArgument>-Xlint:unchecked</compilerArgument> |
||||||
|
</configuration> |
||||||
|
<version>3.8.1</version> |
||||||
|
</plugin> |
||||||
|
<plugin> |
||||||
|
<groupId>org.springframework.boot</groupId> |
||||||
|
<artifactId>spring-boot-maven-plugin</artifactId> |
||||||
|
</plugin> |
||||||
|
<plugin> |
||||||
|
<groupId>io.fabric8</groupId> |
||||||
|
<artifactId>docker-maven-plugin</artifactId> |
||||||
|
</plugin> |
||||||
|
|
||||||
|
<plugin> |
||||||
|
<groupId>org.codehaus.mojo</groupId> |
||||||
|
<artifactId>build-helper-maven-plugin</artifactId> |
||||||
|
<version>3.3.0</version> |
||||||
|
<executions> |
||||||
|
<execution> |
||||||
|
<id>timestamp-property</id> |
||||||
|
<goals> |
||||||
|
<goal>timestamp-property</goal> |
||||||
|
</goals> |
||||||
|
<configuration> |
||||||
|
<name>timestamp</name> |
||||||
|
<pattern>yyyy-MM-dd HH:mm:ss</pattern> |
||||||
|
<locale>zh_CN</locale> |
||||||
|
<timeZone>Asia/Shanghai</timeZone> |
||||||
|
</configuration> |
||||||
|
</execution> |
||||||
|
</executions> |
||||||
|
</plugin> |
||||||
|
|
||||||
|
|
||||||
|
<plugin> |
||||||
|
<artifactId>maven-resources-plugin</artifactId> |
||||||
|
<version>3.1.0</version> |
||||||
|
<executions> |
||||||
|
<execution> |
||||||
|
<id>copy-resource-one</id> |
||||||
|
<phase>install</phase> |
||||||
|
<goals> |
||||||
|
<goal>copy-resources</goal> |
||||||
|
</goals> |
||||||
|
<configuration> |
||||||
|
<outputDirectory>${basedir}/../out</outputDirectory> |
||||||
|
<resources> |
||||||
|
<resource> |
||||||
|
<directory>${basedir}/target</directory> |
||||||
|
<includes> |
||||||
|
<include>${project.artifactId}.jar</include> |
||||||
|
</includes> |
||||||
|
</resource> |
||||||
|
</resources> |
||||||
|
</configuration> |
||||||
|
</execution> |
||||||
|
</executions> |
||||||
|
</plugin> |
||||||
|
|
||||||
|
</plugins> |
||||||
|
</build> |
||||||
|
|
||||||
|
</project> |
@ -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();
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
${AnsiColor.BRIGHT_GREEN} |
||||||
|
|
||||||
|
试剂耗材管理 |
||||||
|
试剂耗材管理 |
||||||
|
试剂耗材管理 |
||||||
|
|
||||||
|
试剂耗材管理(Reagent Managment) |
||||||
|
|
||||||
|
版本: ${version} |
||||||
|
创建: ${timestamp} |
||||||
|
|
||||||
|
${AnsiColor.DEFAULT} |
@ -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 |
Loading…
Reference in new issue