parent
8fecd7727f
commit
46fa7830bc
5 changed files with 170 additions and 0 deletions
@ -0,0 +1,71 @@ |
||||
<?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>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-parent</artifactId> |
||||
<version>2.1.8.RELEASE</version> |
||||
<relativePath/> <!-- lookup parent from repository --> |
||||
</parent> |
||||
<groupId>com.daqing.financial.guarantee</groupId> |
||||
<artifactId>dq-financial-guarantee</artifactId> |
||||
<version>0.0.1-SNAPSHOT</version> |
||||
<name>dq-financial-guarantee</name> |
||||
<description>大庆智慧金融平台-担保业务管理系统</description> |
||||
|
||||
<properties> |
||||
<java.version>1.8</java.version> |
||||
<spring-cloud.version>Greenwich.SR3</spring-cloud.version> |
||||
</properties> |
||||
|
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>com.daqing.financial</groupId> |
||||
<artifactId>dq-financial-api</artifactId> |
||||
<version>0.0.1-SNAPSHOT</version> |
||||
<scope>compile</scope> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-starter-web</artifactId> |
||||
</dependency> |
||||
<dependency> |
||||
<groupId>org.springframework.cloud</groupId> |
||||
<artifactId>spring-cloud-starter-openfeign</artifactId> |
||||
</dependency> |
||||
|
||||
<!--<dependency> |
||||
<groupId>com.daqing.financial</groupId> |
||||
<artifactId>dq-financial-hrms-auth</artifactId> |
||||
<version>0.0.1-SNAPSHOT</version> |
||||
<scope>compile</scope> |
||||
</dependency>--> |
||||
<!-- <dependency> |
||||
<groupId>org.springframework.security</groupId> |
||||
<artifactId>spring-security-core</artifactId> |
||||
<version>5.1.6.RELEASE</version> |
||||
</dependency>--> |
||||
</dependencies> |
||||
|
||||
<dependencyManagement> |
||||
<dependencies> |
||||
<dependency> |
||||
<groupId>org.springframework.cloud</groupId> |
||||
<artifactId>spring-cloud-dependencies</artifactId> |
||||
<version>${spring-cloud.version}</version> |
||||
<type>pom</type> |
||||
<scope>import</scope> |
||||
</dependency> |
||||
</dependencies> |
||||
</dependencyManagement> |
||||
|
||||
<build> |
||||
<plugins> |
||||
<plugin> |
||||
<groupId>org.springframework.boot</groupId> |
||||
<artifactId>spring-boot-maven-plugin</artifactId> |
||||
</plugin> |
||||
</plugins> |
||||
</build> |
||||
</project> |
@ -0,0 +1,18 @@ |
||||
package com.daqing.financial.guarantee; |
||||
|
||||
import org.springframework.boot.SpringApplication; |
||||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
||||
import org.springframework.cloud.client.discovery.EnableDiscoveryClient; |
||||
import org.springframework.scheduling.annotation.EnableScheduling; |
||||
|
||||
//@EnableFeignClients(basePackages = "com.daqing.financial.guarantee.feign")
|
||||
@EnableDiscoveryClient |
||||
@SpringBootApplication |
||||
@EnableScheduling |
||||
public class DqFinancialGuaranteeApplication { |
||||
|
||||
public static void main(String[] args) { |
||||
SpringApplication.run(DqFinancialGuaranteeApplication.class, args); |
||||
} |
||||
|
||||
} |
@ -0,0 +1,12 @@ |
||||
package com.daqing.financial.guarantee.controller; |
||||
|
||||
import org.springframework.web.bind.annotation.*; |
||||
|
||||
@RestController |
||||
@RequestMapping("guarantee") |
||||
public class TestController { |
||||
@GetMapping("/hello") |
||||
public String save() { |
||||
return "hello world"; |
||||
} |
||||
} |
@ -0,0 +1,56 @@ |
||||
#服务名称 |
||||
spring.application.name=dq-financial-guarantee |
||||
#配置中心地址 |
||||
spring.cloud.nacos.config.server-addr=192.168.31.142:8848 |
||||
spring.cloud.nacos.config.namespace=58fa89c6-0e23-4530-ac13-95747e873c60 |
||||
#spring.cloud.nacos.config.group=prod |
||||
|
||||
spring.cloud.nacos.config.ext-config[0].data-id=dq-financial-guarantee.yml |
||||
spring.cloud.nacos.config.ext-config[0].group=dev |
||||
spring.cloud.nacos.config.ext-config[0].refresh=true |
||||
|
||||
spring.cloud.nacos.config.ext-config[1].data-id=datasource.yml |
||||
spring.cloud.nacos.config.ext-config[1].group=dev |
||||
spring.cloud.nacos.config.ext-config[1].refresh=true |
||||
|
||||
|
||||
spring.redis.host=127.0.0.1 |
||||
spring.redis.port=6379 |
||||
spring.redis.password=123456 |
||||
spring.redis.database=0 |
||||
spring.redis.timeout=30000 |
||||
spring.redis.jedis.pool.max-active=8 |
||||
spring.redis.jedis.pool.max-wait=-1 |
||||
spring.redis.jedis.pool.max-idle=8 |
||||
spring.redis.jedis.pool.min-idle=0 |
||||
|
||||
|
||||
# 正式环境(prod) |
||||
#服务名称 |
||||
#spring.application.name=dq-financial-hrms |
||||
##配置中心地址 |
||||
#spring.cloud.nacos.config.server-addr=120.78.127.12:8848 |
||||
#spring.cloud.nacos.config.namespace=69614b55-1521-421c-ac58-dbe4a5b01b43 |
||||
##spring.cloud.nacos.config.group=prod |
||||
# |
||||
#spring.cloud.nacos.config.ext-config[0].data-id=datasource.yml |
||||
#spring.cloud.nacos.config.ext-config[0].group=prod |
||||
#spring.cloud.nacos.config.ext-config[0].refresh=true |
||||
# |
||||
#spring.cloud.nacos.config.ext-config[1].data-id=mybatis.yml |
||||
#spring.cloud.nacos.config.ext-config[1].group=prod |
||||
#spring.cloud.nacos.config.ext-config[1].refresh=true |
||||
# |
||||
#spring.cloud.nacos.config.ext-config[2].data-id=other.yml |
||||
#spring.cloud.nacos.config.ext-config[2].group=prod |
||||
#spring.cloud.nacos.config.ext-config[2].refresh=true |
||||
# |
||||
#spring.redis.host=127.0.0.1 |
||||
#spring.redis.port=6379 |
||||
#spring.redis.password=dq123456 |
||||
#spring.redis.database=0 |
||||
#spring.redis.timeout=30000 |
||||
#spring.redis.jedis.pool.max-active=8 |
||||
#spring.redis.jedis.pool.max-wait=-1 |
||||
#spring.redis.jedis.pool.max-idle=8 |
||||
#spring.redis.jedis.pool.min-idle=0 |
@ -0,0 +1,13 @@ |
||||
//package com.daqing.financial.guarantee.dqfinancialguarantee;
|
||||
//
|
||||
//import org.junit.jupiter.api.Test;
|
||||
//import org.springframework.boot.test.context.SpringBootTest;
|
||||
//
|
||||
//@SpringBootTest
|
||||
//class DqFinancialGuaranteeApplicationTests {
|
||||
//
|
||||
// @Test
|
||||
// void contextLoads() {
|
||||
// }
|
||||
//
|
||||
//}
|
Loading…
Reference in new issue