正式环境配置
This commit is contained in:
parent
5feedfa885
commit
699dbf53d3
|
@ -8,7 +8,7 @@ import org.springframework.web.filter.CorsFilter;
|
||||||
|
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
|
|
||||||
@Configuration
|
//@Configuration
|
||||||
public class CorsConfig {
|
public class CorsConfig {
|
||||||
@Bean
|
@Bean
|
||||||
public CorsFilter corsFilter() {
|
public CorsFilter corsFilter() {
|
||||||
|
|
|
@ -1,10 +0,0 @@
|
||||||
#spring:
|
|
||||||
# config:
|
|
||||||
# import:
|
|
||||||
# - optional:nacos:${spring.application.name}-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
|
||||||
|
|
||||||
server:
|
|
||||||
port: 18086
|
|
||||||
servlet:
|
|
||||||
context-path: /move
|
|
||||||
|
|
|
@ -1,104 +0,0 @@
|
||||||
#server:
|
|
||||||
# port: 9005
|
|
||||||
#
|
|
||||||
spring:
|
|
||||||
# cloud:
|
|
||||||
# stream:
|
|
||||||
# bindings:
|
|
||||||
# orderDeliveriedNotice-out-0:
|
|
||||||
# destination: ss007-auto-topic
|
|
||||||
# orderDeliveriedNotice-in-0:
|
|
||||||
# destination: ss007-auto-topic
|
|
||||||
# group: ss007-group
|
|
||||||
# rabbit:
|
|
||||||
# bindings:
|
|
||||||
# orderDeliveriedNotice-out-0:
|
|
||||||
# producer:
|
|
||||||
# auto-bind-dlq: true
|
|
||||||
# receiveDeliveriedNotice-in-0:
|
|
||||||
# consumer:
|
|
||||||
# auto-bind-dlq: true
|
|
||||||
# dlqMaxLength: 100000
|
|
||||||
# function:
|
|
||||||
# routing:
|
|
||||||
# enabled: true
|
|
||||||
# definition: orderDeliveriedNotice,receiveDeliveriedNotice
|
|
||||||
# default-binder: rabbit
|
|
||||||
# rabbitmq:
|
|
||||||
# host: 10.166.0.192
|
|
||||||
# username: admin
|
|
||||||
# password: Nuzar123456_
|
|
||||||
# port: 5672
|
|
||||||
# virtual-host: /
|
|
||||||
|
|
||||||
# sleuth:
|
|
||||||
# enabled: true
|
|
||||||
# sampler:
|
|
||||||
# # 设置 Sleuth 收集信息的百分比,一般情况下,10%就够用了,这里设置100%观察
|
|
||||||
# rate: 10
|
|
||||||
|
|
||||||
# zipkin:
|
|
||||||
# sender:
|
|
||||||
# type: web
|
|
||||||
# base-url: http://10.166.0.193:9411/
|
|
||||||
# discovery-client-enabled: false
|
|
||||||
# zipkin:
|
|
||||||
# base-url: http://10.166.0.193:9411/ #zipkin地址
|
|
||||||
# discovery-client-enabled: false #不⽤开启服务发现
|
|
||||||
|
|
||||||
# # profiles:
|
|
||||||
# # active: host
|
|
||||||
# datasource:
|
|
||||||
# driver-class-name: com.mysql.cj.jdbc.Driver
|
|
||||||
# url: jdbc:mysql://192.168.56.101:3306/integrated_order?useSSL=false&characterEncoding=utf8
|
|
||||||
# username: root
|
|
||||||
# password: 123456
|
|
||||||
# main:
|
|
||||||
# allow-bean-definition-overriding: true
|
|
||||||
# type: com.alibaba.druid.pool.DruidDataSource
|
|
||||||
# mybatis:
|
|
||||||
# configuration:
|
|
||||||
# map-underscore-to-camel-case: true
|
|
||||||
# redis:
|
|
||||||
# host: 192.168.56.101
|
|
||||||
# port: 6379
|
|
||||||
logging:
|
|
||||||
level:
|
|
||||||
root: info
|
|
||||||
com.nuzar: debug
|
|
||||||
nuzar:
|
|
||||||
cloud:
|
|
||||||
web:
|
|
||||||
wrapper: common #默认mass结构,common为简化返回结构
|
|
||||||
security:
|
|
||||||
mode: none
|
|
||||||
audit:
|
|
||||||
enabled: true
|
|
||||||
processor: database
|
|
||||||
async: true
|
|
||||||
feign:
|
|
||||||
okhttp:
|
|
||||||
enabled: true
|
|
||||||
client:
|
|
||||||
config:
|
|
||||||
default:
|
|
||||||
connectTimeout: 500
|
|
||||||
|
|
||||||
# job:
|
|
||||||
# enabled: true
|
|
||||||
# admin-addresses: http://10.166.0.192:8491/xxl-job-admin ##调度中心地址
|
|
||||||
# access-token: Nuzar123456_ #执行器通讯TOKEN [选填]:非空时启用;
|
|
||||||
# executor:
|
|
||||||
# appname: ${spring.application.name} #执行器AppName,[选填]:执行器心跳注册分组依据;为空则关闭自动注册(与三.1中的appName一致)
|
|
||||||
|
|
||||||
management:
|
|
||||||
endpoints:
|
|
||||||
web:
|
|
||||||
exposure:
|
|
||||||
include: health
|
|
||||||
enabled-by-default: true
|
|
||||||
health:
|
|
||||||
ping:
|
|
||||||
enabled: true
|
|
||||||
rabbit:
|
|
||||||
enabled: false
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
spring:
|
||||||
|
application:
|
||||||
|
name: nuzar-customer-boss
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
server-addr: nacos1:8848,nacos2:8848,nacos3:8848
|
||||||
|
discovery:
|
||||||
|
namespace: 80f92d8d-5c3e-41bd-a0c0-cb5c63652340
|
||||||
|
config:
|
||||||
|
namespace: 80f92d8d-5c3e-41bd-a0c0-cb5c63652340
|
||||||
|
file-extension: yaml
|
||||||
|
prefix: ${spring.application.name}
|
||||||
|
shared-configs:
|
||||||
|
- data-id: rtops-prod.yaml
|
||||||
|
username: nacos
|
||||||
|
password: Nuzar123456_@HTGJ1
|
||||||
|
mybatis-plus:
|
||||||
|
configuration-properties:
|
||||||
|
prefix:
|
||||||
|
blobType: BLOB
|
||||||
|
boolValue: TRUE
|
Loading…
Reference in New Issue