Configuration instructions
This article describes the development, debugging, or maintenance requirements related to configuration instructions and is applicable to project development and delivery personnel.
Configuration file description
Modify the configuration file
application-local.yml
vim spark-yun/backend/main/resources/application-local.yml
# 服务端口号
server:
port: 8080
spring:
# 配置后台服务访问管理员账号密码
security:
user:
name: admin
password: admin123
# 业务数据库的信息配置,默认使用h2数据库,使用全新的db
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:file:~/.zhiqingyun/h2/data;AUTO_SERVER=TRUE
username: root
password: root123
# jasypt加密key
jasypt:
encryptor:
password: zhiqingyun
# 至轻云应用配置
isx-app:
resources-path: classpath:resources # 资源文件,例如许可证、驱动、头像等资源路径
admin-passwd: admin123 # 配置至轻云平台admin管理员的密码,仅第一次执行生效
use-ssl: false # 是否开启ssl
Configuration parameter encryption instructions
Use jasypt to encrypt the configured account password Specify the key through --jasypt.encryptor.password, or specify it through the configuration file
jasypt:
encryptor:
password: zhiqingyun
Start a project
./gradlew start
Call the interface to obtain the encrypted value
/tools/open/jasyptEncrypt?text=${Parameters that need to be encrypted}
http://localhost:8080/tools/open/jasyptEncrypt?text=roothttp://localhost:8080/tools/open/jasyptEncrypt?text=root123
Modify the encrypted account password in the configuration file and restart the system The format is as follows: ENC( ${encrypted parameters} )
spring:
datasource:
driver-class-name: org.h2.Driver
url: jdbc:h2:file:~/.zhiqingyun/h2/data;AUTO_SERVER=TRUE
username: ENC(1O7GNz9/IkV3hzgDGsH+n5q4ucoJQSTW24ZAfEBYDlMGVmoMXh+EYi8LnLEjlD6W)
password: ENC(28GLUi7pLUVqsdaCiWW32mT0q5mae9YJaSgWWiYse7K1ZHnZ2zQ2HEnbivlJzZeQ)
