记得上下班打卡 | git大法好,push需谨慎

Commit 33107bf5 authored by jiangxiulong's avatar jiangxiulong

prod platform才能正确的使用 redis 判断环境才算 db

parent f0c29780
...@@ -33,7 +33,7 @@ liquidnet: ...@@ -33,7 +33,7 @@ liquidnet:
redis: redis:
queue: queue:
database: 254 database: 254
host: r-2zelzzxn2tq82o14g4.redis.rds.aliyuncs.com host: r-2zelzzxn2tq82o14g4pd.redis.rds.aliyuncs.com
port: 6380 port: 6380
password: java:SfHY!Z3lW password: java:SfHY!Z3lW
kylin: kylin:
......
...@@ -6,7 +6,7 @@ liquidnet: ...@@ -6,7 +6,7 @@ liquidnet:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.207.189:7001 host: 127.0.0.1:7001
# end-prod-这里是配置信息基本值 # end-prod-这里是配置信息基本值
spring: spring:
......
# begin-test-这里是配置信息基本值 # begin-test-这里是配置信息基本值
liquidnet: liquidnet:
cloudConfig: cloudConfig:
profile: test profile: prod
security: security:
username: user username: user
password: user123 password: user123
eureka: eureka:
host: 172.17.207.177:7001 host: 127.0.0.1:7001
# end-test-这里是配置信息基本值 # end-test-这里是配置信息基本值
spring: spring:
......
...@@ -2,4 +2,4 @@ spring: ...@@ -2,4 +2,4 @@ spring:
application: application:
name: liquidnet-service-platform name: liquidnet-service-platform
profiles: profiles:
active: dev active: prod
...@@ -4,3 +4,8 @@ goblin_order.close.sku=UPDATE goblin_order_sku SET status = ? ,updated_at = ? WH ...@@ -4,3 +4,8 @@ goblin_order.close.sku=UPDATE goblin_order_sku SET status = ? ,updated_at = ? WH
# ------------------------????---------------------------- # ------------------------????----------------------------
kylin_camera_record.insert=INSERT INTO kylin_camera_record (camera_record_id, camera_id, person_num) VALUES (?,?,?) kylin_camera_record.insert=INSERT INTO kylin_camera_record (camera_record_id, camera_id, person_num) VALUES (?,?,?)
adam_enters.edit=UPDATE adam_enters SET `type`=?, `name`=?, mobile=?, id_card=?, is_default=?, updated_at=? WHERE enters_id=?
...@@ -40,7 +40,9 @@ public class SweetMathUtil { ...@@ -40,7 +40,9 @@ public class SweetMathUtil {
public static void main(String[] args) { public static void main(String[] args) {
// 演出 // 演出
getIndex("kylin:performances:id:3593259032328560647540949"); // getIndex("kylin:performances:id:3593259032328560647540949");
// getIndex("adam:info:enters:2028906701014466564961253");
getIndex("adam:info:certification:1450202200409261446");
// getIndex("kylin:performances:roadShowId:5936345"); // getIndex("kylin:performances:roadShowId:5936345");
// getIndex("kylin:performances:roadShowId:570"); // getIndex("kylin:performances:roadShowId:570");
......
...@@ -13,7 +13,7 @@ spring: ...@@ -13,7 +13,7 @@ spring:
eureka: eureka:
instance: instance:
hostname: 172.17.192.42 hostname: 127.0.0.1
preferIpAddress: true preferIpAddress: true
health-check-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/health health-check-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/health
status-page-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/info status-page-url: http://localhost:${server.port}${server.servlet.context-path}/actuator/info
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment