mcs
版权管理系统mcs
项目介绍
版权管理系统,需求及文档
软件架构
spring boot
部署及启动
- 下载mcs-1.0.01.war包
- 启动命令
nohup java -jar mcs-1.0.01.war --spring.config.location=application.yml > mcs.log &,其中--spring.config.location=application.yml指定配置文件路径 - 环境要求jdk1.8、与C平台在同一内网环境(单点登录)
配置文件说明
application.yml
server:
port: 3333 #端口号
tomcat:
basedir: ./tmp #自定义tomcat临时文件目录,避免/tmp定时被清理
servlet:
context-path: /mcs #请求路径
session:
timeout: 30000 #session超时
jsp:
init-parameters:
development: true
spring:
redis:
host: 10.3.1.2 #c平台登录的session redis
port: 6379
password: hqhy#1234
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
#新建主库
url: jdbc:mysql://10.3.1.9:3306/guttv_mcs?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull
username: root
password: Guttv@1234ABCxyz!
mail:
host: smtp.alibaba.com
port: 25
username: [email protected]
password: 003675as,.
default-encoding: utf-8
protocol: smtp
boot:
admin:
client:
username: admin #c_admin用户名
password: 'hqhy#1234' #c_admin 密码
url: http://10.3.1.15:9999/c_admin #c_admin url
instance:
service-url: http://10.2.1.177:${server.port}${server.servlet.context-path} #当前应用地址
application:
name: mcs #应用名称,用于c_admin展示
mybatis:
mapper-locations: classpath:/mapper/**Mapper.xml
type-aliases-package: com.guttv.mcs.bean
cas:
shiro:
casServer: http://10.3.1.1:9993/cas #cas server
casClient: http://10.2.1.177:${server.port}${server.servlet.context-path} #client端本身外网地址
redis:
host: ${spring.redis.host}
port: ${spring.redis.port}
password: ${spring.redis.password}
expire: 86400
session:
timeout: 86400000
interval:
time: 3600000
logging:
config: classpath:logback-spring.xml
path: D://data//logs
level:
root: info
org.springframework: warn
com.guttv: debug
OmsCoreRequestUrl: http://10.3.1.1:7772/oms_core #内网oms_core地址,便于获取权限及用户信息
management:
endpoints:
web:
base-path: /manager #监控端点
exposure:
include: '*'
endpoint:
env:
enabled: true
health:
show-details: ALWAYS
shutdown:
enabled: false
logfile:
enabled: true
external-file: ${logging.path}/mcs/mcs.log
youku:
openapi: http://119.254.98.182:31006/youku/openapi/shows/show/showid/
upload_path: D://data
toptic: mcs:copyright_info
pagehelper:
reasonable: true
helper-dialect: mysql
support-methods-arguments: true
params: count=countSql
info:
tags:
environment: dev #c_admin 环境标签