手机号注册-native环境配置

This commit is contained in:
2022-11-15 11:33:52 +08:00
parent 475eebaf9c
commit 5c24b4fd5f
6 changed files with 137 additions and 28 deletions

View File

@@ -41,5 +41,38 @@
<groupId>org.springframework.security.oauth.boot</groupId>
<artifactId>spring-security-oauth2-autoconfigure</artifactId>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.2.14</version>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-spring</artifactId>
<version>5.14.5</version>
</dependency>
<dependency>
<groupId>javax.jms</groupId>
<artifactId>javax.jms-api</artifactId>
<version>2.0.1</version>
</dependency>
<dependency>
<groupId>com.googlecode.libphonenumber</groupId>
<artifactId>libphonenumber</artifactId>
<version>8.13.0</version>
</dependency>
<dependency>
<groupId>com.github.penggle</groupId>
<artifactId>kaptcha</artifactId>
<version>2.3.2</version>
<exclusions>
<exclusion>
<artifactId>javax.servlet-api</artifactId>
<groupId>javax.servlet</groupId>
</exclusion>
</exclusions>
</dependency>
</dependencies>
</project>

View File

@@ -33,22 +33,6 @@
<artifactId>accompany-oauth2-service</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.github.penggle</groupId>
<artifactId>kaptcha</artifactId>
<version>2.3.2</version>
<exclusions>
<exclusion>
<artifactId>javax.servlet-api</artifactId>
<groupId>javax.servlet</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-spring</artifactId>
<version>5.14.5</version>
</dependency>
</dependencies>
<build>

View File

@@ -0,0 +1,79 @@
#MySQL数据库配置
spring:
datasource:
url: jdbc:mysql://118.194.255.128:3306/peko?useUnicode=true&characterEncoding=UTF-8&tinyInt1isBit=false&useSSL=false
username: root
password: anan@dev##
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
initial-size: 5
max-active: 120
min-idle: 5
max-wait: 60000
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 50
filters: stat,wall
connection-properties=druid.stat.mergeSql: true;druid.stat.slowSqlMillis=500
use-global-data-source-stat: true
hikari:
minimum-idle: 10
maximum-pool-size: 20
connection-test-query: select 1
max-lifetime: 0
connection-timeout: 30000
data:
mongodb:
host: 118.194.255.128
port: 27017
username: peko
password: peko@mongo@dev#!
database: peko
redis:
host: 118.194.255.128
port: 6200
maxTotal: 100
maxIdle: 50
maxWait: 2500
testOnBorrow: true
testOnReturn: true
password: anan@dev@redis@#!
database: 1
redisson:
# file: classpath:redisson.yaml
config: |
singleServerConfig:
address: redis://118.194.255.128:6200
password: anan@dev@redis@#!
connectionMinimumIdleSize: 16
timeout: 10000
threads: 16
nettyThreads: 32
codec: !<org.redisson.codec.JsonJacksonCodec> {}
transportMode: "NIO"
##activemq 配置
activemq:
brokerUrl: tcp://118.194.255.128:61619
user: system
password: manager
maxConnections: 50
idleTimeout: 30000
## ES配置
elasticsearch:
clusterName: elasticsearch
hostName: es-cn-2r42lphv9000nvr61.public.elasticsearch.aliyuncs.com
port: 9200
username: elastic
password: xuanyin@es123
roomIndex: yinyou_dev_room
userIndex: yinyou_dev_users_202204121516
server:
port: 8081

View File

@@ -2,7 +2,19 @@ spring:
application:
name: oauth2
profiles:
active: dev
active: native
cloud:
nacos:
config:
server-addr: 120.24.160.102:8848
namespace: 5edc3246-3e69-4be5-a32a-273f0a09ddf6
name: ${spring.application.name}
file-extension: yml
shared-dataids: application.yml,thirdpart.yml,pay.yml,sysconf.yml,oauth2-dev.yml
refreshable-dataids: application.yml,thirdpart.yml,pay.yml,sysconf.yml,oauth2-dev.yml
---
spring:
profiles: dev
cloud:
nacos:
config:

View File

@@ -142,4 +142,16 @@
<!-- <appender-ref ref="aliyun-dev-error-log"/>-->
</root>
</springProfile>
<springProfile name="native">
<logger name="com.accompany" level="DEBUG"/>
<logger name="com.xuanyin" level="DEBUG"/>
<root level="info">
<appender-ref ref="CONSOLE"/>
<appender-ref ref="info_async_file"/>
<appender-ref ref="warn_async_file"/>
<appender-ref ref="error_async_file"/>
</root>
</springProfile>
</configuration>

View File

@@ -22,17 +22,6 @@
<artifactId>accompany-common</artifactId>
<version>${revision}</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.20</version>
</dependency>
<dependency>
<groupId>javax.jms</groupId>
<artifactId>javax.jms-api</artifactId>
<version>2.0.1</version>
</dependency>
</dependencies>
</project>