# spring-cloud配置 **Repository Path**: oceanvance/spring-cloudpeizhi ## Basic Information - **Project Name**: spring-cloud配置 - **Description**: 全局配置 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-11-14 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #环境参数 spring-profiles-active: dev #内置undertow优化 server-connection-timeout: 5000 server-undertow-worker-threads: 20 server-undertow-io-threads: 20 #zuul网关配置 zuul-host-maxTotalConnections: 350 zuul-host-maxPerRouteConnections: 100 #断路器 feign-hystrix-enabled: true feign-httpclient-enabled: true #链路追踪 spring-zipkin-base-url: http://116.62.222.152:9411 #即100%的概率将链路的数据上传给Zipkin Server,在默认的情况下,该值为0.1 spring-sleuth-sampler-percentage: 1.0 #注册中心端口号 eureka-server-port: 8761 #注册中心地址http://116.62.222.152:8761/eureka/ eureka-client-serviceUrl-defaultZone: http://116.62.222.152:8761/eureka/ # 开启健康检查(需要spring-boot-starter-actuator依赖) eureka-client-healthcheck-enabled: true # 续约更新时间间隔(默认30秒) eureka-instance-lease-renewal-interval-in-seconds: 30 # 续约到期时间(默认90秒) eureka-instance-lease-expiration-duration-in-seconds: 90 # actuator 应用自省中心安全性 security-basic-enabled: false #针对/admin路径进行认证 security-basic-path: /admin #认证使用的用户名 security-user-name: admin #认证使用的密码 security-user-password: 1 #actuator暴露接口使用的端口,为了和api接口使用的端口进行分离 #management-port: 1111 #actuator暴露接口的前缀 management-context-path: /admin #actuator是否需要安全保证 management-security-enabled: false management-security-roles: SUPERUSER #actuator的metrics接口是否需要安全保证 endpoints-metrics-sensitive: false endpoints-metrics-enabled: true #actuator的health接口是否需要安全保证 endpoints-health-sensitive: false endpoints-health-enabled: true #rabbitMQ spring-rabbitmq-host: 116.62.222.152 spring-rabbitmq-port: 5672 spring-rabbitmq-username: admin spring-rabbitmq-password: a1467999 #DB配置 db-driverClass: com.mysql.jdbc.Driver db-url: jdbc:mysql://116.62.222.152:3306/dev_paocheng?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8 db-username: pc_test_aabbcc db-password: pc_test_aabbcc1234 redis-pool-maxActive: 1024 redis-pool-maxIdle: 200 redis-pool-minIdle: 20 redis-pool-maxWait: 1000 redis-pool-testOnBorrow: true redis-pool-testOnReturn: true # Redis Server redis1-ip: 116.62.222.152 redis1-port: 6379 redis1-name: redis redis1-password: redisaA1467999 #逻辑true logic-true: 1 #逻辑false logic-false: -1 #融云 rong-key: 123 rong-secret: 123 #七牛 qiniu-accessKey: test qiniu-secretKey: test #短信验证码 sms-authcode-prefix: test sms-authcode-alive: 2000 #图片根url image-baseurl: test image-systembaseurl: test #MD5盐值 md5-salt: '!@#paocheng#@!' #鉴权接口 auth-uri-json: [{"description":"统一登录","method":"post","roleLevel":2,"uri":"/*/oauth2/login"},{"description":"鉴权测试","method":"get","roleLevel":2,"uri":"/*/oauth2/test"},{"description":"获取手机验证码","method":"post","roleLevel":2,"uri":"/*/system/get_authcode"},{"description":"app启动页","method":"get","roleLevel":2,"uri":"/*/system/start"},{"description":"app bug提交","method":"post","roleLevel":2,"uri":"/*/system/bug"},{"description":"测试","method":"get","roleLevel":2,"uri":"/*/system/test"},{"description":"获取code","method":"post","roleLevel":1,"uri":"/*/oauth2/code"},{"description":"获取accessToken","method":"post","roleLevel":1,"uri":"/*/oauth2/accessToken"},{"description":"用户注册","method":"post","roleLevel":2,"uri":"/*/user/reg"},{"description":"购物车列表","method":"get","roleLevel":2,"uri":"/*/shopping/carList/**"},{"description":"猜你喜欢","method":"get","roleLevel":2,"uri":"/*/shopping/likeList/**"},{"description":"删除购物车","method":"get","roleLevel":2,"uri":"/*/shopping/delCar/**"},{"description":"更新购物车","method":"post","roleLevel":2,"uri":"/*/shopping/updateCar"},{"description":"增加购物车","method":"post","roleLevel":2,"uri":"/*/shopping/addCar"},{"description":"发现首页","method":"get","roleLevel":2,"uri":"/*/explore/index/**"},{"description":"商讯详情","method":"get","roleLevel":2,"uri":"/*/explore/shangxun/detail/**"},{"description":"0元购 半价购 泡币商城等","method":"get","roleLevel":2,"uri":"/*/activityStore/**"},{"description":"商家注册","method":"post","roleLevel":2,"uri":"/*/business/reg"},{"description":"商家验证手机号","method":"post","roleLevel":2,"uri":"/*/business/checkTel"},{"description":"web获取验证图片","method":"get","roleLevel":1,"uri":"/*/oauth2/authcodeImage/**"},{"description":"web 商家二维码登录","method":"post","roleLevel":1,"uri":"/*/oauth2/qrcodeLogin"},{"description":"web 单点登录 鉴权系统","method":"get","roleLevel":1,"uri":"/*/oauth2/webCheckAuth"},{"description":"web 单点登录 鉴权系统","method":"post","roleLevel":1,"uri":"/*/oauth2/webCheckAuth"},{"description":"验证用户user手机号","method":"post","roleLevel":2,"uri":"/*/user/checkTel"},{"description":"获取七牛token","method":"get","roleLevel":2,"uri":"/*/system/qiniu_token"},{"description":"首页模块","method":"get","roleLevel":2,"uri":"/*/home/**"},{"description":"首页模块","method":"post","roleLevel":2,"uri":"/*/home/**"},{"description":"获取店铺经营分类列表","method":"get","roleLevel":2,"uri":"/*/business/storeSonClassList"},{"description":"是否有库存","method":"post","roleLevel":2,"uri":"/*/shopping/ifHasKucun"},{"description":"websocket","method":"get","roleLevel":1,"uri":"/*/sockjs/**"},{"description":"商家扫码登录","method":"get","roleLevel":1,"uri":"/*/oauth2/submitBusinessUserToken"},{"description":"扫码抽奖","method":"get","roleLevel":1,"uri":"/*/user/scanningRaffle"},{"description":"支付异步回调","method":"post","roleLevel":1,"uri":"/*/shopping/asyn_order"}] #ping++参数 pingpp-appid: app_5i9OiDXzjH84jvrv pingpp-apikey: sk_test_yT0qTG8qf5WHi9avz5Kqbzn9 pingpp-private-key: 'MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDHYyS3FwoESp1hGLYiBhy6k9Ag3lzGCIEvm50IIEkE0Ftc9qq44TWqyl+EHUpTMdcBOcI42JLO5stwFOfCLa3PQStEJ4llIRFEKlsrHh67pvWd5RNaSBrvGlnFY40S+SZmjk2WF/h9dE9Ric79t0YI0alD8dIl9Yu3OaEKo7VonBWFwOYMxjPhtORlq' #serverSecret auth2-serverSecret: 123 #极光推送 jpush-appkey: test jpush-masterSecret: test jpush-tokenUser: test jpush-tokenBusiness: test #高德地图 gaode-key: test4d #默认的分页大小 common-default-pagesize : 30 #默认的城市名称 common-default-cityname : 上海 #奥莱的模块id common-default-aolai-modelid : 1 #超市便利的模块id common-default-chaoshi-modelid : 2 #线下的模块id common-default-xianxia-modelid : 3 #用户收藏类型 1: 商品 2: 店铺 3: 文章 common-default-collect-goods-type : 1 common-default-collect-store-type : 2 common-default-collect-article-type : 3 #1:商品 2: 文章 首页数据类型 common-default-explore-article-type : 2 common-default-explore-goods-type : 1 # 四种活动方式 0元 半价 泡币 common-default-zero-activity-type : 3 common-default-half-activity-type : 4 common-default-paobi-activity-type : 2 #用户模块 #当前用户角色 common-default-role-type-user : 1 common-default-role-type-business : 2 common-default-role-type-admin : 3 prompt-msg-searchkey-empty : 搜索关键字为空 prompt-msg-storeid-empty : 店铺id不能为空 prompt-msg-aolaichaoshiclassid-empty : 奥莱或超市便利的商品列表不能为空 prompt-msg-goodsid-empty : 商品id不能为空 #商品上下架 prompt-msg-goodsxiajia-error : 商品下架失败 prompt-msg-goodsxiajia-success : 商品下架成功 prompt-msg-goodsxiajia-empty : 下架的商品不存在 prompt-msg-goodsshangjia-error : 商品上架失败 prompt-msg-goodsshangjia-success : 商品上架成功 prompt-msg-goodsshangorxia-error : 商品上架或下架出错 #零元购和半价购 prompt-msg-zerobanjiabuy-activity-type-empty : 活动类型不能为空 #半价购状态 prompt-msg-half-activity-type : 4 #零元购状态 prompt-msg-zero-activity-type : 3 #泡币返利模块 prompt-msg-store-parentclassid-empty : 店铺的parentId不能为空 #用户模块 prompt-msg-user-non-existent : 用户不存在 prompt-msg-user-userinfo-success : 获取用户信息成功 prompt-msg-user-userinfo-error : 获取用户信息出错 prompt-msg-user-authcode-error : 验证码不正确 prompt-msg-user-tel-empty : 手机号不能为空 prompt-msg-user-password-lessthan-six : 密码不能少于6位数 prompt-msg-user-jpushregid-empty : 极光推送的regid为空 prompt-msg-user-hometowncityname-empty : 家乡城市名为空 prompt-msg-user-hometowncitycode-empty : 家乡城市code为空 prompt-msg-user-tel-exists : 手机号已经存在 prompt-msg-user-inviteCode-non-existent : 邀请码不存在 prompt-msg-user-reg-error : 注册失败 prompt-msg-user-invitecode-error : 邀请用户不存在 prompt-msg-user-reg-success : 注册成功 #用户模块之收藏 prompt-msg-user-collect-type-empty : 收藏类型为空 #用户模块之密码修改 prompt-msg-user-pwd-empty : 密码不能为空 prompt-msg-user-pwdsame-error : 旧密码不能和新密码相同 prompt-msg-user-pwdmatch-error : 原密码不正确 prompt-msg-user-pwdmodify-error : 密码修改失败 prompt-msg-user-pwdmodify-success : 密码修改成功 prompt-msg-user-nicknamemodify-success : 昵称修改成功 prompt-msg-user-nicknamemodify-error : 昵称修改失败 prompt-msg-user-nicknamemodify-empty : 昵称不能为空 prompt-msg-user-checktel-success : 验证手机号成功 prompt-msg-user-checktel-error : 验证手机号错误 prompt-msg-user-telmodify-success : 修改手机号成功 prompt-msg-user-telmodify-error : 修改手机号失败 prompt-msg-user-headimagemodify-success : 修改头像成功 prompt-msg-user-headimagemodify-error : 修改头像失败 prompt-msg-user-headimagemodify-empty : 头像图片为空 #订单 prompt-msg-orderno-empty : 订单号为空 #转币抽奖 prompt-msg-zhuanbichoujiang-success : 转币抽奖成功 prompt-msg-zhuanbichoujiang-error : 转币抽奖出错 #商家注册状态(business中进行添加的) #未审核 common-default-business-check-status-no-start : -1 #审核通过 common-default-business-check-status-success : 1 #审核不通过 common-default-business-check-status-no : -2