Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
station
YeeAmosFireAutoSysRoot
Commits
e6a00bfc
Commit
e6a00bfc
authored
Jul 08, 2021
by
maoying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录密码验证加密及配置文件修改
parent
4bdbf681
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
153 additions
and
138 deletions
+153
-138
pom.xml
YeeAmosFireAutoSysCommon/pom.xml
+1
-1
pom.xml
YeeAmosFireAutoSysService/pom.xml
+5
-5
LoginController.java
...yeejoin/amos/fas/business/controller/LoginController.java
+1
-1
RemoteSecurityService.java
...eejoin/amos/fas/business/feign/RemoteSecurityService.java
+46
-41
EquipmentServiceImpl.java
.../amos/fas/business/service/impl/EquipmentServiceImpl.java
+0
-7
pom.xml
YeeAmosFireAutoSysStart/pom.xml
+2
-2
application-dev.properties
...utoSysStart/src/main/resources/application-dev.properties
+29
-27
application-docker.properties
...SysStart/src/main/resources/application-docker.properties
+29
-27
application-test.properties
...toSysStart/src/main/resources/application-test.properties
+30
-21
application.properties
...ireAutoSysStart/src/main/resources/application.properties
+9
-5
pom.xml
pom.xml
+1
-1
No files found.
YeeAmosFireAutoSysCommon/pom.xml
View file @
e6a00bfc
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
<parent>
<parent>
<groupId>
com.yeejoin.amos
</groupId>
<groupId>
com.yeejoin.amos
</groupId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<version>
2.0.6
</version>
<version>
3.0.1.3
</version>
</parent>
</parent>
<!-- <dependencies>
<!-- <dependencies>
...
...
YeeAmosFireAutoSysService/pom.xml
View file @
e6a00bfc
...
@@ -14,14 +14,14 @@
...
@@ -14,14 +14,14 @@
<parent>
<parent>
<groupId>
com.yeejoin.amos
</groupId>
<groupId>
com.yeejoin.amos
</groupId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<version>
2.0.6
</version>
<version>
3.0.1.3
</version>
</parent>
</parent>
<dependencies>
<dependencies>
<dependency>
<dependency>
<groupId>
com.yeejoin.amos
</groupId>
<groupId>
com.yeejoin.amos
</groupId>
<artifactId>
YeeAmosFireAutoSysCommon
</artifactId>
<artifactId>
YeeAmosFireAutoSysCommon
</artifactId>
<version>
2.0.6
</version>
<version>
3.0.1.3
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
@@ -73,18 +73,18 @@
...
@@ -73,18 +73,18 @@
<dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-feign-privilege
</artifactId>
<artifactId>
amos-feign-privilege
</artifactId>
<version>
1.
1.0
-SNAPSHOT
</version>
<version>
1.
4.8
-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-feign-systemctl
</artifactId>
<artifactId>
amos-feign-systemctl
</artifactId>
<version>
1.
1.0
-SNAPSHOT
</version>
<version>
1.
4.8
-SNAPSHOT
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.yeejoin
</groupId>
<groupId>
com.yeejoin
</groupId>
<artifactId>
amos-component-feign
</artifactId>
<artifactId>
amos-component-feign
</artifactId>
<version>
1.
1.0
-SNAPSHOT
</version>
<version>
1.
4.8
-SNAPSHOT
</version>
</dependency>
</dependency>
<!-- <dependency>
<!-- <dependency>
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/LoginController.java
View file @
e6a00bfc
...
@@ -59,7 +59,7 @@ public class LoginController {
...
@@ -59,7 +59,7 @@ public class LoginController {
@Value
(
"${security.productWeb}"
)
@Value
(
"${security.productWeb}"
)
private
String
product
;
private
String
product
;
@Value
(
"${security.appKey
Web
}"
)
@Value
(
"${security.appKey}"
)
private
String
appKey
;
private
String
appKey
;
@ApiOperation
(
value
=
"通过userId登录"
,
notes
=
"查询设备指标"
)
@ApiOperation
(
value
=
"通过userId登录"
,
notes
=
"查询设备指标"
)
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/feign/RemoteSecurityService.java
View file @
e6a00bfc
package
com
.
yeejoin
.
amos
.
fas
.
business
.
feign
;
package
com
.
yeejoin
.
amos
.
fas
.
business
.
feign
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
...
@@ -8,47 +24,36 @@ import com.google.common.base.Joiner;
...
@@ -8,47 +24,36 @@ import com.google.common.base.Joiner;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
com.yeejoin.amos.component.feign.config.InnerInvokException
;
import
com.yeejoin.amos.component.feign.config.TokenOperation
;
import
com.yeejoin.amos.component.feign.config.TokenOperation
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.component.feign.model.FeignClientResult
;
import
com.yeejoin.amos.fas.business.util.CacheFactory
;
import
com.yeejoin.amos.fas.business.util.CacheMap
;
import
com.yeejoin.amos.fas.business.vo.ReginParams
;
import
com.yeejoin.amos.fas.business.vo.Toke
;
import
com.yeejoin.amos.fas.business.vo.Toke
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.core.util.CommonResponse
;
import
com.yeejoin.amos.fas.exception.PermissionException
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.Privilege
;
import
com.yeejoin.amos.feign.privilege.model.*
;
import
com.yeejoin.amos.feign.privilege.model.AgencyUserModel
;
import
com.yeejoin.amos.feign.privilege.model.CompanyModel
;
import
com.yeejoin.amos.feign.privilege.model.DepartmentModel
;
import
com.yeejoin.amos.feign.privilege.model.IdPasswordAuthModel
;
import
com.yeejoin.amos.feign.privilege.model.PermissionModel
;
import
com.yeejoin.amos.feign.privilege.util.DesUtil
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
com.yeejoin.amos.feign.systemctl.model.DictionarieValueModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.util.ObjectUtils
;
import
org.typroject.tyboot.core.foundation.context.RequestContext
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
@Service
(
"remoteSecurityService"
)
@Service
(
"remoteSecurityService"
)
public
class
RemoteSecurityService
{
public
class
RemoteSecurityService
{
@Value
(
"${security.password}"
)
private
String
password
;
@Value
(
"${security.password}"
)
@Value
(
"${security.loginId}"
)
private
String
password
;
private
String
loginId
;
@Value
(
"${security.productWeb}"
)
@Value
(
"${security.loginId}"
)
private
String
productWeb
;
private
String
loginId
;
@Value
(
"${security.appKeyWeb}"
)
private
String
appKeyWeb
;
@Value
(
"${security.productWeb}"
)
private
String
productWeb
;
@Autowired
@Value
(
"${security.appKey}"
)
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
private
String
appKey
;
@Autowired
private
RedisTemplate
<
String
,
String
>
redisTemplate
;
//根据公司名称获取公司人
//根据公司名称获取公司人
public
List
<
CompanyModel
>
listCompanyTree
(
String
toke
,
String
product
,
String
appKey
,
String
companyName
)
{
public
List
<
CompanyModel
>
listCompanyTree
(
String
toke
,
String
product
,
String
appKey
,
String
companyName
)
{
...
@@ -117,7 +122,7 @@ public class RemoteSecurityService {
...
@@ -117,7 +122,7 @@ public class RemoteSecurityService {
List
<
AgencyUserModel
>
AgencyUserModel
=
null
;
List
<
AgencyUserModel
>
AgencyUserModel
=
null
;
FeignClientResult
feignClientResult
;
FeignClientResult
feignClientResult
;
try
{
try
{
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByCompanyId
(
Long
.
valueOf
(
companyId
),
null
);
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByCompanyId
(
Long
.
valueOf
(
companyId
),
null
,
null
,
true
);
AgencyUserModel
=
(
List
<
AgencyUserModel
>)
feignClientResult
.
getResult
();
AgencyUserModel
=
(
List
<
AgencyUserModel
>)
feignClientResult
.
getResult
();
}
catch
(
InnerInvokException
e
)
{
}
catch
(
InnerInvokException
e
)
{
...
@@ -141,7 +146,7 @@ public class RemoteSecurityService {
...
@@ -141,7 +146,7 @@ public class RemoteSecurityService {
List
<
AgencyUserModel
>
agencyUserModel
=
null
;
List
<
AgencyUserModel
>
agencyUserModel
=
null
;
FeignClientResult
feignClientResult
;
FeignClientResult
feignClientResult
;
try
{
try
{
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByRoleId
(
RoleIds
);
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByRoleId
(
RoleIds
,
null
);
agencyUserModel
=
(
List
<
AgencyUserModel
>)
feignClientResult
.
getResult
();
agencyUserModel
=
(
List
<
AgencyUserModel
>)
feignClientResult
.
getResult
();
}
catch
(
InnerInvokException
e
)
{
}
catch
(
InnerInvokException
e
)
{
...
@@ -153,7 +158,7 @@ public class RemoteSecurityService {
...
@@ -153,7 +158,7 @@ public class RemoteSecurityService {
public
Toke
getServerToken
()
{
public
Toke
getServerToken
()
{
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
IdPasswordAuthModel
dPasswordAuthModel
=
new
IdPasswordAuthModel
();
dPasswordAuthModel
.
setLoginId
(
loginId
);
dPasswordAuthModel
.
setLoginId
(
loginId
);
dPasswordAuthModel
.
setPassword
(
password
);
dPasswordAuthModel
.
setPassword
(
DesUtil
.
encode
(
password
,
"qaz"
)
);
Toke
toke
=
null
;
Toke
toke
=
null
;
try
{
try
{
toke
=
JSON
.
parseObject
(
redisTemplate
.
opsForValue
().
get
(
buildKey
(
loginId
)),
Toke
.
class
);
toke
=
JSON
.
parseObject
(
redisTemplate
.
opsForValue
().
get
(
buildKey
(
loginId
)),
Toke
.
class
);
...
@@ -178,7 +183,7 @@ public class RemoteSecurityService {
...
@@ -178,7 +183,7 @@ public class RemoteSecurityService {
if
(
map
!=
null
){
if
(
map
!=
null
){
toke
.
setToke
(
map
.
get
(
"token"
).
toString
());
toke
.
setToke
(
map
.
get
(
"token"
).
toString
());
toke
.
setProduct
(
productWeb
);
toke
.
setProduct
(
productWeb
);
toke
.
setAppKey
(
appKey
Web
);
toke
.
setAppKey
(
appKey
);
redisTemplate
.
opsForValue
().
set
(
buildKey
(
dPasswordAuthModel
.
getLoginId
()),
JSONObject
.
toJSONString
(
toke
),
28
,
TimeUnit
.
DAYS
);
redisTemplate
.
opsForValue
().
set
(
buildKey
(
dPasswordAuthModel
.
getLoginId
()),
JSONObject
.
toJSONString
(
toke
),
28
,
TimeUnit
.
DAYS
);
}
}
return
toke
;
return
toke
;
...
@@ -206,7 +211,7 @@ public class RemoteSecurityService {
...
@@ -206,7 +211,7 @@ public class RemoteSecurityService {
List
<
AgencyUserModel
>
agencyUserModel
=
null
;
List
<
AgencyUserModel
>
agencyUserModel
=
null
;
FeignClientResult
feignClientResult
;
FeignClientResult
feignClientResult
;
try
{
try
{
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByIds
(
userIds
);
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByIds
(
userIds
,
true
);
agencyUserModel
=
(
List
<
AgencyUserModel
>
)
feignClientResult
.
getResult
();
agencyUserModel
=
(
List
<
AgencyUserModel
>
)
feignClientResult
.
getResult
();
}
catch
(
InnerInvokException
e
)
{
}
catch
(
InnerInvokException
e
)
{
...
@@ -309,7 +314,7 @@ public class RemoteSecurityService {
...
@@ -309,7 +314,7 @@ public class RemoteSecurityService {
List
<
AgencyUserModel
>
agencyUserModel
=
null
;
List
<
AgencyUserModel
>
agencyUserModel
=
null
;
FeignClientResult
feignClientResult
=
new
FeignClientResult
();
FeignClientResult
feignClientResult
=
new
FeignClientResult
();
try
{
try
{
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByOrgCode
(
orgCode
);
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByOrgCode
(
orgCode
,
null
);
}
catch
(
InnerInvokException
e
)
{
}
catch
(
InnerInvokException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
@@ -366,7 +371,7 @@ public class RemoteSecurityService {
...
@@ -366,7 +371,7 @@ public class RemoteSecurityService {
List
<
AgencyUserModel
>
agencyUserModel
=
null
;
List
<
AgencyUserModel
>
agencyUserModel
=
null
;
FeignClientResult
feignClientResult
;
FeignClientResult
feignClientResult
;
try
{
try
{
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByDepartmentId
(
Long
.
valueOf
(
departmentId
),
null
);
feignClientResult
=
Privilege
.
agencyUserClient
.
queryByDepartmentId
(
Long
.
valueOf
(
departmentId
),
null
,
null
,
true
);
agencyUserModel
=
(
List
<
AgencyUserModel
>)
feignClientResult
.
getResult
();
agencyUserModel
=
(
List
<
AgencyUserModel
>)
feignClientResult
.
getResult
();
}
catch
(
InnerInvokException
e
)
{
}
catch
(
InnerInvokException
e
)
{
...
@@ -478,7 +483,7 @@ public class RemoteSecurityService {
...
@@ -478,7 +483,7 @@ public class RemoteSecurityService {
List
<
PermissionModel
>
dictionarieModel
=
null
;
List
<
PermissionModel
>
dictionarieModel
=
null
;
FeignClientResult
feignClientResult
;
FeignClientResult
feignClientResult
;
try
{
try
{
feignClientResult
=
Privilege
.
permissionClient
.
queryPermissionTree
(
appType
,
null
,
null
,
null
);
feignClientResult
=
Privilege
.
permissionClient
.
queryPermissionTree
(
appType
,
null
,
null
,
null
,
appKey
);
dictionarieModel
=
(
List
<
PermissionModel
>)
feignClientResult
.
getResult
();
dictionarieModel
=
(
List
<
PermissionModel
>)
feignClientResult
.
getResult
();
}
catch
(
InnerInvokException
e
)
{
}
catch
(
InnerInvokException
e
)
{
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/EquipmentServiceImpl.java
View file @
e6a00bfc
...
@@ -86,13 +86,6 @@ public class EquipmentServiceImpl implements IEquipmentService {
...
@@ -86,13 +86,6 @@ public class EquipmentServiceImpl implements IEquipmentService {
@Autowired
@Autowired
IEquipManageFeign
iEquipManageFeign
;
IEquipManageFeign
iEquipManageFeign
;
// @Autowired
// private IFmeaEquipmentPointDao iFmeaEquipmentPointDao;
// @Autowired
// private MongoTemplate mongoTemplate;
@Value
(
"${windows.img.path}"
)
@Value
(
"${windows.img.path}"
)
private
String
winImgPath
;
private
String
winImgPath
;
...
...
YeeAmosFireAutoSysStart/pom.xml
View file @
e6a00bfc
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<parent>
<parent>
<groupId>
com.yeejoin.amos
</groupId>
<groupId>
com.yeejoin.amos
</groupId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<version>
2.0.6
</version>
<version>
3.0.1.3
</version>
</parent>
</parent>
<dependencies>
<dependencies>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<dependency>
<dependency>
<groupId>
com.yeejoin.amos
</groupId>
<groupId>
com.yeejoin.amos
</groupId>
<artifactId>
YeeAmosFireAutoSysService
</artifactId>
<artifactId>
YeeAmosFireAutoSysService
</artifactId>
<version>
2.0.6
</version>
<version>
3.0.1.3
</version>
</dependency>
</dependency>
</dependencies>
</dependencies>
...
...
YeeAmosFireAutoSysStart/src/main/resources/application-dev.properties
View file @
e6a00bfc
#DB properties:
spring.datasource.url
=
jdbc:mysql://172.16.11.20:3306/autosys_business_v3.0.0.2?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
root_123
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.hikari.maxLifetime
=
1765000
spring.datasource.hikari.maximum-pool-size
=
10
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
#系统服务账号,用户后端服务调用
#系统服务账号,用户后端服务调用
security.password
=
a1234560
security.password
=
a1234560
security.loginId
=
fas_autosys
security.loginId
=
fas_autosys
#environment
#spring.profiles.active = dev
#应用product appkey
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.72:10001/eureka/
security.productWeb
=
STUDIO_APP_WEB
security.appKey
=
studio_normalapp_2681691
eureka.client.serviceUrl.defaultZone
=
http://172.16.11.20:10001/eureka/
eureka.client.register-with-eureka
=
true
eureka.client.register-with-eureka
=
true
eureka.client.fetch-registry
=
true
eureka.client.fetch-registry
=
true
eureka.client.healthcheck.enabled
=
true
eureka.client.healthcheck.enabled
=
true
eureka.client.fetchRegistry
=
true
eureka.client.fetchRegistry
=
true
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
#DB properties:
spring.datasource.url
=
jdbc:mysql://172.16.10.66:3306/safety-business-3.0.1?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
root_123
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.hikari.maxLifetime
=
1765000
spring.datasource.hikari.maximum-pool-size
=
10
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
#ws
params.remoteWebsocketUrl
=
http://172.16.11.36:10600/
#redis
#redis
spring.redis.database
=
0
spring.redis.database
=
1
spring.redis.host
=
172.16.1
0.85
spring.redis.host
=
172.16.1
1.20
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
amos2019Redis
spring.redis.password
=
1234560
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-idle
=
10
spring.redis.jedis.pool.max-idle
=
10
...
@@ -36,17 +39,16 @@ windows.img.path = C:\\
...
@@ -36,17 +39,16 @@ windows.img.path = C:\\
linux.img.path = /
linux.img.path = /
file.uploadUrl
=
C:
\\
upload
\\
files
\\
file.uploadUrl
=
C:
\\
upload
\\
files
\\
#picture read
#picture read
file.readUrl=http://172.16.3.89:8083/file/getFile?in=
file.readUrl=http://172.16.11.33:8085/file/getFile?in=
params.isPush
=
true
#jpush 推送开关
params.isPush
=
false
## emqx
## emqx
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.1
0.85
:1883
emqx.broker
=
tcp://172.16.1
1.33
:1883
emqx.user-name
=
super
emqx.user-name
=
admin
emqx.password
=
a123456
emqx.password
=
public
#
�����
#
文件服务器地址
file.downLoad.url
=
http://39.98.246.31:8888/
file.downLoad.url
=
http://39.98.246.31:8888/
#站端名称使用全拼
station.name
=
yinan
#是否开启将风险区域同步至仓库货位true开启,false关闭。默认关闭。
equipManage.fegin.isSyn
=
false
YeeAmosFireAutoSysStart/src/main/resources/application-docker.properties
View file @
e6a00bfc
#DB properties:
spring.datasource.url
=
jdbc:mysql://172.16.11.20:3306/autosys_business_v3.0.0.2?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
root_123
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.hikari.maxLifetime
=
1765000
spring.datasource.hikari.maximum-pool-size
=
10
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
#系统服务账号,用户后端服务调用
#系统服务账号,用户后端服务调用
security.password
=
a1234560
security.password
=
a1234560
security.loginId
=
fas_autosys
security.loginId
=
fas_autosys
#environment
#spring.profiles.active = dev
#应用product appkey
eureka.client.serviceUrl.defaultZone
=
http://amos-eurka:10001/eureka/
security.productWeb
=
STUDIO_APP_WEB
security.appKey
=
studio_normalapp_2681691
eureka.client.serviceUrl.defaultZone
=
http://172.16.11.20:10001/eureka/
eureka.client.register-with-eureka
=
true
eureka.client.register-with-eureka
=
true
eureka.client.fetch-registry
=
true
eureka.client.fetch-registry
=
true
eureka.client.healthcheck.enabled
=
true
eureka.client.healthcheck.enabled
=
true
eureka.client.fetchRegistry
=
true
eureka.client.fetchRegistry
=
true
eureka.instance.prefer-ip-address
=
true
eureka.instance.prefer-ip-address
=
true
#DB properties:
spring.datasource.url
=
jdbc:mysql://amos-mysql:3306/yeejoin_safety_business?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.password
=
yeejoin_1234
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.hikari.maxLifetime
=
1765000
spring.datasource.hikari.maximum-pool-size
=
10
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
#redis
#redis
spring.redis.database
=
1
spring.redis.database
=
1
spring.redis.host
=
amos-redis
spring.redis.host
=
172.16.11.20
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
redis202
0
spring.redis.password
=
123456
0
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-idle
=
10
spring.redis.jedis.pool.max-idle
=
10
spring.redis.jedis.pool.min-idle
=
0
spring.redis.jedis.pool.min-idle
=
0
spring.redis.timeout
=
1000
spring.redis.timeout
=
1000
#picture upload
#picture upload
windows.img.path
=
E
:
\\
windows.img.path
=
C
:
\\
linux.img.path
=
/
linux.img.path
=
/
file.uploadUrl
=
D
:
\\
upload
\\
files
\\
file.uploadUrl
=
C
:
\\
upload
\\
files
\\
#picture read
#picture read
file.readUrl
=
http://station-fireautosys:8083/file/getFile?in=
file.readUrl
=
http://172.16.11.33:8085/file/getFile?in=
#jpush 推送开关
params.isPush
=
false
## emqx
## emqx
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.10.85:1883
emqx.broker
=
tcp://172.16.11.33:1883
emqx.user-name
=
super
emqx.user-name
=
admin
emqx.password
=
a123456
emqx.password
=
public
#文件服务器地址
#\uFFFD\u013C\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD
file.downLoad.url
=
http://39.98.246.31:8888/
file.downLoad.url
=
http://172.16.10.175:8888/
#是否开启将风险区域同步至仓库货位true开启,false关闭。默认关闭。
equipManage.fegin.isSyn
=
false
YeeAmosFireAutoSysStart/src/main/resources/application-test.properties
View file @
e6a00bfc
#系统服务账号,用户后端服务调用
security.password
=
a1234560
security.loginId
=
fas_autosys
#environment
eureka.client.serviceUrl.defaultZone
=
http://172.16.10.72:10001/eureka/
eureka.client.register-with-eureka
=
true
eureka.client.fetch-registry
=
true
eureka.client.healthcheck.enabled
=
true
eureka.client.fetchRegistry
=
true
eureka.instance.prefer-ip-address
=
true
#DB properties:
#DB properties:
spring.datasource.url
=
jdbc:mysql://
47.103.14.66:3306/91-safety-business
?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.url
=
jdbc:mysql://
172.16.11.20:3306/autosys_business_v3.0.0.2
?allowMultiQueries=true&serverTimezone=GMT%2B8&characterEncoding=utf8
spring.datasource.username
=
root
spring.datasource.username
=
root
spring.datasource.password
=
root_123
spring.datasource.password
=
root_123
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.cj.jdbc.Driver
...
@@ -18,28 +8,47 @@ spring.datasource.hikari.maximum-pool-size = 10
...
@@ -18,28 +8,47 @@ spring.datasource.hikari.maximum-pool-size = 10
spring.datasource.testWhileIdle
=
true
spring.datasource.testWhileIdle
=
true
spring.datasource.validationQuery
=
SELECT 1
spring.datasource.validationQuery
=
SELECT 1
#系统服务账号,用户后端服务调用
security.password
=
a1234560
security.loginId
=
fas_autosys
#应用product appkey
security.productWeb
=
STUDIO_APP_WEB
security.appKey
=
studio_normalapp_2681691
eureka.client.serviceUrl.defaultZone
=
http://172.16.11.20:10001/eureka/
eureka.client.register-with-eureka
=
true
eureka.client.fetch-registry
=
true
eureka.client.healthcheck.enabled
=
true
eureka.client.fetchRegistry
=
true
eureka.instance.prefer-ip-address
=
true
#redis
#redis
spring.redis.database
=
1
spring.redis.database
=
1
spring.redis.host
=
1
27.0.0.1
spring.redis.host
=
1
72.16.11.20
spring.redis.port
=
6379
spring.redis.port
=
6379
spring.redis.password
=
spring.redis.password
=
1234560
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-active
=
200
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-wait
=
-1
spring.redis.jedis.pool.max-idle
=
10
spring.redis.jedis.pool.max-idle
=
10
spring.redis.jedis.pool.min-idle
=
0
spring.redis.jedis.pool.min-idle
=
0
spring.redis.timeout
=
1000
spring.redis.timeout
=
1000
#picture upload
#picture upload
windows.img.path
=
E
:
\\
windows.img.path
=
C
:
\\
linux.img.path
=
/
linux.img.path
=
/
file.uploadUrl
=
D
:
\\
upload
\\
files
\\
file.uploadUrl
=
C
:
\\
upload
\\
files
\\
#picture read
#picture read
file.readUrl
=
http://172.16.3.89:8083/file/getFile?in=
file.readUrl
=
http://172.16.11.33:8085/file/getFile?in=
#jpush 推送开关
params.isPush
=
false
## emqx
## emqx
emqx.clean-session
=
true
emqx.clean-session
=
true
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.client-id
=
${spring.application.name}-${random.int[1024,65536]}
emqx.broker
=
tcp://172.16.10.85:1883
emqx.broker
=
tcp://172.16.11.33:1883
emqx.user-name
=
super
emqx.user-name
=
admin
emqx.password
=
a123456
emqx.password
=
public
#文件服务器地址
file.downLoad.url
=
http://39.98.246.31:8888/
#\uFFFD\u013C\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD
file.downLoad.url
=
http://172.16.10.175:8888/
YeeAmosFireAutoSysStart/src/main/resources/application.properties
View file @
e6a00bfc
spring.application.name
=
AMOS-AUTOSYS
spring.application.name
=
AMOS-AUTOSYS
server.servlet.context-path
=
/fireAutoSys
server.servlet.context-path
=
/fireAutoSys
server.port
=
8085
server.port
=
8085
#environment
spring.profiles.active
=
dev
spring.profiles.active
=
dev
#应用product appkey
security.productWeb
=
STUDIO_APP_WEB
security.appKeyWeb
=
studio_normalapp_2681691
#spring.freemarker.cache=false
#spring.freemarker.cache=false
spring.devtools.restart.enabled
=
true
spring.devtools.restart.enabled
=
true
...
@@ -51,11 +49,16 @@ visual.fegin.name=maas-visual
...
@@ -51,11 +49,16 @@ visual.fegin.name=maas-visual
dutyMode.fegin.name
=
AMOS-DUTYMODE
dutyMode.fegin.name
=
AMOS-DUTYMODE
#队站装备管理名称,主要用于风险区域同步至仓库货位和订阅装备信息系统
#队站装备管理名称,主要用于风险区域同步至仓库货位和订阅装备信息系统
equipManage.fegin.name
=
AMOS-EQUIPMANAGE
equipManage.fegin.name
=
AMOS-EQUIPMANAGE
#feginName
number.plan.projectName
=
换流站消防专项预案
#jpush 服务名称
#jpush 服务名称
Push.fegin.name
=
AMOS-JPUSH
Push.fegin.name
=
AMOS-JPUSH
#feginName
number.plan.projectName
=
换流站消防专项预案
#站端名称使用全拼 与三维iotree 消息用到了,暂时统一设置为yinan
station.name
=
yinan
param.safetyIndexChange.cron
=
0 0 2 * * ?
param.safetyIndexChange.cron
=
0 0 2 * * ?
param.weather.url
=
http://wthrcdn.etouch.cn/weather_mini?citykey=
param.weather.url
=
http://wthrcdn.etouch.cn/weather_mini?citykey=
...
@@ -70,6 +73,7 @@ rule.definition.default-agency=STATE_GRID
...
@@ -70,6 +73,7 @@ rule.definition.default-agency=STATE_GRID
#Fegin service config
#Fegin service config
amos.feign.gennerator.use-gateway
=
true
amos.feign.gennerator.use-gateway
=
true
# 消息推送类型
# 消息推送类型
autoSys.push.type
=
mqtt
autoSys.push.type
=
mqtt
...
...
pom.xml
View file @
e6a00bfc
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.yeejoin.amos
</groupId>
<groupId>
com.yeejoin.amos
</groupId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<artifactId>
YeeAmosFireAutoSysRoot
</artifactId>
<version>
2.0.6
</version>
<version>
3.0.1.3
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<name>
YeeAmosFireAutoSysRoot
</name>
<name>
YeeAmosFireAutoSysRoot
</name>
...
...
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