| | |
| | | eureka: |
| | | client: |
| | | service-url: #注册中心地址 |
| | | defaultZone: http://sinata:sinata@192.168.110.111:8000/eureka #启用身份验证的方式连接 |
| | | defaultZone: http://sinata:sinata@192.168.110.85:8000/eureka #启用身份验证的方式连接 |
| | | register-with-eureka: true #在注册中心进行注册 |
| | | fetch-registry: true #从Eureka中获取注册信息。 |
| | | |
| | |
| | | |
| | | eureka: |
| | | instance: |
| | | hostname: 192.168.110.106 #注册中心地址 |
| | | hostname: 192.168.110.85 #注册中心地址 |
| | | client: |
| | | service-url: #客户端调用地址 |
| | | defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/ |
| | |
| | | |
| | | <build> |
| | | <plugins> |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>org.springframework.boot</groupId>--> |
| | | <!-- <artifactId>spring-boot-maven-plugin</artifactId>--> |
| | | <!-- <configuration>--> |
| | | <!-- <fork>true</fork><!– 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart –>--> |
| | | <!-- --> |
| | | <!-- </configuration>--> |
| | | <!-- --> |
| | | <!-- </plugin>--> |
| | | <!-- --> |
| | | <!-- <plugin>--> |
| | | <!-- <groupId>org.apache.maven.plugins</groupId>--> |
| | | <!-- <artifactId>maven-surefire-plugin</artifactId>--> |
| | | <!-- <configuration>--> |
| | | <!-- <skip>true</skip>--> |
| | | <!-- </configuration>--> |
| | | <!-- </plugin>--> |
| | | <plugin> |
| | | <groupId>org.springframework.boot</groupId> |
| | | <artifactId>spring-boot-maven-plugin</artifactId> |
| | | <configuration> |
| | | <fork>true</fork><!-- 如果没有该项配置,肯呢个devtools不会起作用,即应用不会restart --> |
| | | |
| | | </configuration> |
| | | |
| | | </plugin> |
| | | |
| | | <plugin> |
| | | <groupId>org.apache.maven.plugins</groupId> |
| | | <artifactId>maven-surefire-plugin</artifactId> |
| | | <configuration> |
| | | <skip>true</skip> |
| | | </configuration> |
| | | </plugin> |
| | | </plugins> |
| | | |
| | | <!--打包war包引入本地jar的打包方式--> |
| | |
| | | registrationBean.addInitParameter("edu.yale.its.tp.cas.client.filter.loginUrl", "https://testsso1.teamshub.com/login"); |
| | | registrationBean.addInitParameter("edu.yale.its.tp.cas.client.filter.validateUrl", "https://testsso1.teamshub.com/serviceValidate"); |
| | | registrationBean.addInitParameter("com.oncon.md.loginUrl", "https://testsso1.teamshub.com/sso-session/login"); |
| | | registrationBean.addInitParameter("edu.yale.its.tp.cas.client.filter.serverName", "https://traffic.qytzt.cn:443"); |
| | | registrationBean.addInitParameter("edu.yale.its.tp.cas.client.filter.serverName", "https://test-qncx.sitechcloud.com:443"); |
| | | } |
| | | if("prod".equals(activeProfile)){ |
| | | registrationBean.setFilter(onconMDCasFilter); |
| | |
| | | package com.stylefeng.guns.modular.system.util; |
| | | |
| | | public class PushURL { |
| | | public static String zull_user_url = "https://traffic.qytzt.cn"; |
| | | public static String zull_user_url = "https://test-qncx.sitechcloud.com"; |
| | | public static String order_push_url = zull_user_url + "/driver/base/order/pushOrderState"; |
| | | public static String driver_auth_url = zull_user_url + "/driver/base/driver/sendsms"; |
| | | public static String withdraw_auth_url = zull_user_url + "/driver/base/withdrawal/withdrawalAudit"; |
| | |
| | | } |
| | | if("test".equals(activeProfile)){ |
| | | this.setAppkey("10001104"); |
| | | this.setPrivateKeyPath("/root/server/app/key/private_key_test.pem"); |
| | | this.setPrivateKeyPath("/etraffic/server/private_key_test.pem"); |
| | | this.setUserName("xiaofei"); |
| | | this.setStatus("1"); |
| | | this.setApiUrl("https://test-zhongtai.stqcloud.com:10070"); |
| | |
| | | max-request-size: 500MB |
| | | max-file-size: 500MB |
| | | redis: |
| | | host: 172.21.35.151 |
| | | port: 6514 |
| | | password: Test_cache@20#25 |
| | | host: 10.88.154.24 |
| | | port: 7560 |
| | | password: Idcs_B_2025rd141 |
| | | database: 0 |
| | | timeout: 1000 |
| | | cluster: |
| | | nodes: 172.21.35.151:6514,172.21.35.152:6514,172.21.35.153:6514,172.21.35.151:6515,172.21.35.152:6515,172.21.35.153:6515 |
| | | nodes: 10.88.154.24:7560,10.88.154.34:7560,10.88.154.59:7560,10.88.154.98:7560,10.88.154.100:7560,10.88.154.109:7560 |
| | | |
| | | mybatis-plus: |
| | | type-aliases-package: com.stylefeng.guns.modular.system.model |
| | |
| | | --- |
| | | spring: |
| | | datasource: |
| | | url: jdbc:mysql://172.21.35.140:8066/traffic_scdb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: traffic_testusr |
| | | password: QYT_test@20#25 |
| | | db-name: traffic_scdb #用来搜集数据库的所有表 |
| | | url: jdbc:mysql://10.86.17.201:5740/hn_ridingdb?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: hn_ridingdb |
| | | password: hn_ridingdb123456$#@! |
| | | db-name: hn_ridingdb #用来搜集数据库的所有表 |
| | | filters: wall,mergeStat |
| | | |
| | | |
| | |
| | | spring: |
| | | data: |
| | | mongodb: |
| | | uri: mongodb://qyt_jtcx:qyt_jtcx2025@172.21.35.197:27017/traveling_track |
| | | host: 10.88.204.206,10.88.204.207,10.88.204.208 |
| | | port: 27009 |
| | | username: qn_riding_adm |
| | | password: QN_riding@Prom2025 |
| | | database: qn_ridingdb |
| | | |
| | | |
| | | --- |
| | |
| | | |
| | | #支付回调地址 |
| | | #正式环境 |
| | | callbackPath: https://traffic.qytzt.cn |
| | | callbackPath: https://test-qncx.sitechcloud.com |
| | | |
| | | #交通部推送数据功能开关 |
| | | pushMinistryOfTransport: false |
| | |
| | | <contextName>logback</contextName> |
| | | |
| | | <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义后,可以使“${}”来使用变量。 --> |
| | | <property name="log.path" value="/data/app/logs/management"/> |
| | | <property name="log.path" value="/etraffic/server/logs/management"/> |
| | | |
| | | <!--0. 日志格式和颜色渲染 --> |
| | | <!-- 彩色日志依赖的渲染类 --> |
| | |
| | | // ChildChannelHandler 对出入的数据进行的业务操作,其继承ChannelInitializer |
| | | b.childHandler(new ChildChannelHandler()); |
| | | System.out.println("服务端开启等待客户端连接 ... ..."); |
| | | Channel ch = b.bind(8888).sync().channel(); |
| | | Channel ch = b.bind(8808).sync().channel(); |
| | | ch.closeFuture().sync(); |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | |
| | | //用于websocket握手的处理类 |
| | | private WebSocketServerHandshaker handshaker; |
| | | |
| | | private static final String WEB_SOCKET_URL = "ws://localhost:8888/websocket"; |
| | | private static final String WEB_SOCKET_URL = "ws://localhost:8808/websocket"; |
| | | |
| | | |
| | | |
| | |
| | | /** |
| | | * 获取即时通讯启动端口 |
| | | */ |
| | | private Integer nettyPort = 9999; |
| | | private Integer nettyPort = 9909; |
| | | @Override |
| | | public void run() { |
| | | EventLoopGroup bossGroup = new NioEventLoopGroup(); |
| | |
| | | max-request-size: 100MB |
| | | max-file-size: 100MB |
| | | redis: |
| | | host: 192.168.110.80 |
| | | port: 6379 |
| | | password: 123456 |
| | | # host: 172.21.35.151 |
| | | # port: 6512 |
| | | # password: SC_cache@20#25 |
| | | # database: 0 |
| | | # timeout: 1000 |
| | | # cluster: |
| | | # nodes: 172.21.35.151:6512,172.21.35.152:6512,172.21.35.153:6512,172.21.35.151:6513,172.21.35.152:6513,172.21.35.153:6513 |
| | | # host: 192.168.110.80 |
| | | # port: 6379 |
| | | # password: 123456 |
| | | host: 10.88.154.24 |
| | | port: 7560 |
| | | password: Idcs_B_2025rd141 |
| | | database: 0 |
| | | timeout: 1000 |
| | | cluster: |
| | | nodes: 10.88.154.24:7560,10.88.154.34:7560,10.88.154.59:7560,10.88.154.98:7560,10.88.154.100:7560,10.88.154.109:7560 |
| | | |
| | |
| | | <contextName>logback</contextName> |
| | | |
| | | <!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义后,可以使“${}”来使用变量。 --> |
| | | <property name="log.path" value="/root/server/app/logs"/> |
| | | <property name="log.path" value="etraffic/server/logs"/> |
| | | |
| | | <!--0. 日志格式和颜色渲染 --> |
| | | <!-- 彩色日志依赖的渲染类 --> |
| | |
| | | |
| | | spring: |
| | | profiles: |
| | | active: prod |
| | | active: dev |
| | | # active: prod |
| | | application: |
| | | name: zuul-gateway #服务名称 |
| | | |