Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
xyqb-user2
Commits
ea79011a
Commit
ea79011a
authored
Dec 14, 2017
by
Java—红包—徐 然
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改配置
parent
921b6f8d
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
124 additions
and
2 deletions
+124
-2
Bootstrap.java
src/main/java/cn/quantgroup/xyqb/Bootstrap.java
+2
-1
SmsServiceImpl.java
...a/cn/quantgroup/xyqb/service/sms/impl/SmsServiceImpl.java
+6
-1
ApplicationContextHolder.java
...ava/cn/quantgroup/xyqb/util/ApplicationContextHolder.java
+1
-0
application.properties
src/main/resources/config/dev/application.properties
+4
-0
xyqb.properties
src/main/resources/config/dev/xyqb.properties
+111
-0
No files found.
src/main/java/cn/quantgroup/xyqb/Bootstrap.java
View file @
ea79011a
...
...
@@ -17,14 +17,15 @@ import org.springframework.context.event.ContextRefreshedEvent;
import
org.springframework.scheduling.annotation.EnableAsync
;
@ComponentScan
(
basePackages
=
{
"cn.quantgroup.sms"
,
"cn.quantgroup.xyqb"
})
@EnableAutoConfiguration
@SpringBootApplication
@EnableCaching
@EnableApolloConfig
({
"application"
,
"tech.msg.sdk"
,
"cash.common"
})
@PropertySource
(
value
=
{
"classpath:application.properties"
,
"classpath:xyqb.properties"
},
ignoreResourceNotFound
=
true
)
@Configuration
@EnableAspectJAutoProxy
@EnableAsync
@EnableApolloConfig
({
"application"
,
"tech.msg.sdk"
,
"cash.common"
})
@Slf4j
public
class
Bootstrap
{
...
...
src/main/java/cn/quantgroup/xyqb/service/sms/impl/SmsServiceImpl.java
View file @
ea79011a
...
...
@@ -4,6 +4,7 @@ import cn.quantgroup.sms.MsgParams;
import
cn.quantgroup.sms.SmsSender
;
import
cn.quantgroup.xyqb.Constants
;
import
cn.quantgroup.xyqb.service.sms.ISmsService
;
import
lombok.Synchronized
;
import
org.apache.commons.lang.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
...
...
@@ -26,7 +27,7 @@ public class SmsServiceImpl implements ISmsService {
private
static
final
int
SMS_VERIFICATION_MAXLEN
=
4
;
private
static
final
String
SMS_VERIFY_PREFIX
=
"sms:verify:"
;
private
static
final
SmsSender
smsSender
=
new
SmsSender
()
;
private
static
SmsSender
smsSender
=
null
;
@Value
(
"${sms.is.debug}"
)
private
Boolean
isDebug
;
@Autowired
...
...
@@ -34,7 +35,11 @@ public class SmsServiceImpl implements ISmsService {
private
RedisTemplate
<
String
,
String
>
stringRedisTemplate
;
@Override
@Synchronized
public
SmsSender
getSmsSender
()
{
if
(
null
==
smsSender
){
smsSender
=
new
SmsSender
();
}
return
smsSender
;
}
...
...
src/main/java/cn/quantgroup/xyqb/util/ApplicationContextHolder.java
View file @
ea79011a
...
...
@@ -5,6 +5,7 @@ import org.springframework.beans.factory.NoSuchBeanDefinitionException;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.ApplicationContextAware
;
import
org.springframework.context.annotation.Primary
;
import
org.springframework.stereotype.Component
;
/**
...
...
src/main/resources/config/dev/application.properties
0 → 100644
View file @
ea79011a
server.port
=
8082
security.sessions
=
if_required
spring.aop.proxy-target-class
=
true
src/main/resources/config/dev/xyqb.properties
0 → 100644
View file @
ea79011a
config.accessable
=
false
configserver.disable
=
1
configserver.system
=
xyqb-user
#xyqb.data.mysql.jdbc-url=jdbc:mysql://192.168.4.22:3306/xyqb_user?useUnicode=true&characterEncoding=UTF8
xyqb.data.mysql.jdbc-url
=
jdbc:mysql://192.168.4.153:3306/xyqb_user?useUnicode=true&characterEncoding=UTF8
xyqb.data.mysql.password
=
qatest
xyqb.data.mysql.user
=
qa
xyqb.data.mysql.max-pool-size
=
20
# CORS
xyqb.filter.allowedOrigin
=
*
xyqb.filter.allowedHeaders
=
Origin, No-Cache, x-auth-token, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type,Authorization
xyqb.data.redis.defaultExpiration
=
3600
# redis
xyqb.redis.master.host
=
192.168.4.153
xyqb.redis.master.port
=
6379
xyqb.redis.master.name
=
xyqb.redis.sentinel1.host
=
xyqb.redis.sentinel1.port
=
0
xyqb.redis.sentinel2.host
=
xyqb.redis.sentinel2.port
=
0
xyqb.redis.sentinel3.host
=
xyqb.redis.sentinel3.port
=
0
# 短信平台配置
sms.is.debug
=
1
# LKB client
lkb.client.url
=
http://192.168.4.193:8082/LKBClient/openapi
lkb.client.user.register.app
=
/new/register/registerApp.json
lkb.client.user.update
=
/new/register/updateUser.json
lkb.client.user.push
=
/user/push.json
# LKB import
lkb.import.url
=
http://spider.quantgroup.cn
# LKB
lkb.url
=
http://192.168.192.251:8081/LKB
# xyqb
xyqb.url
=
http://192.168.192.163:8999
xyqb.api.url
=
http://192.168.192.163:9004
# 图形验证码
# 是否启用超级验证码 "__SUPERQG__", 用于测试环境自动化测试, 线上环境可忽略此参数
xyqb.auth.captcha.super.enable
=
1
#首参数校验
xyqb.fplock.limit.byhour
=
3
xyqb.fplock.limit.byday
=
5
#sdk
model.quantgroup.url
=
http://model.quantgroup.cn
xyqb.auth.url
=
http://192.168.192.206:9001
usersys.url
=
http://localhost:9001
xyqb-user.ui
=
http://192.168.100.36:7043
xyqb-user.ui-s
=
https://192.168.100.36:7043
wechat.appid
=
wxcdf6077af8127559
wechat.secret
=
16eaec16084d0d9c52d4114f359cc72c
#motan protocol
protocol.name
=
motan
protocol.contentLength
=
1048576
protocol.isDefault
=
true
#motan registry center
registry.protocol
=
zookeeper
registry.address
=
192.168.4.22:2181
motan.port
=
8086
motan.user.group
=
userGroup
motan.user.module
=
user-motan-rpc
motan.application
=
xyqbUserMotan
#xyqb-user-域名
xyqb.user.domain
=
passport.xyqb.com
xyqb.user.query.url
=
http://192.168.11.40:8081
xyqb.domain
=
http://192.168.4.153:7003
xyqb.paycenter.url
=
http://192.168.4.26:7006
xyqb.paycenter.id
=
3
#内部运营系统
xyqb.yunying.url
=
http://192.168.4.26:7047
#马甲包
loanvest.rabbitmq.connection.virtual-host
=
/loan_order
#loanvest.rabbitmq.stateMsgQueue=loan_vest_msg_queue
loanvest.rabbitmq.queue
=
loan_user_queue
loanvest.rabbitmq.exchange
=
loan_vest_exchange
loanvest.rabbitmq.connection.host
=
192.168.4.46
loanvest.rabbitmq.connection.port
=
5672
loanvest.rabbitmq.connection.user
=
qa
loanvest.rabbitmq.connection.password
=
qatest
#用户注册广播
register.rabbitmq.connection.virtual-host
=
/user_register
register.rabbitmq.queue
=
user_register_queue
register.rabbitmq.exchange
=
user_register_exchange
register.rabbitmq.connection.host
=
192.168.4.153
register.rabbitmq.connection.port
=
5672
register.rabbitmq.connection.user
=
qa
register.rabbitmq.connection.password
=
qatest
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment