- 启动
zookeeper,双击运行zkServer.cmd
image.png
- 启动
- 启动
cas。进入D:\IdeaProjects\cas-overlay-template-5.3文件夹,命令如下:
- 启动
java -jar target\cas.war
image.png
- Git 更新代码并打包。进入
D:\IdeaProjects\feifan文件夹,右击运行Git Bash,输入以下命令:
- Git 更新代码并打包。进入
git pull origin dev-1.0-wsm // 更新代码
mvn clean install -DskipTests=true // 打包
image.png
- 启动
dbservice。记得启动MySQL,文件夹是:D:\IdeaProjects\feifan\feifan-db-service\feifan-db-service-impl
- 启动
java -jar target\feifan-db-service-impl-1.0.0-SNAPSHOT.jar
image.png
- 启动
upms。文件夹是:D:\IdeaProjects\feifan\feifan-upms\feifan-upms-web
- 启动
java -jar target\feifan-upms-web-1.0.0-SNAPSHOT.jar
image.png
- 启动
etm。文件夹是:D:\IdeaProjects\feifan\feifan-etm\feifan-etm-web
- 启动
java -jar target\feifan-etm-web-1.0.0-SNAPSHOT.jar
image.png
修改地址文件说明
- dbservice 修改数据库地址:
D:\IdeaProjects\feifan\feifan-db-service\feifan-db-service-impl\src\main\resources
image.png
- dbservice 修改数据库地址:
-
etm修改地址:D:\IdeaProjects\feifan\feifan-etm\feifan-etm-web\src\main\resources
image.png
-
-
upms修改地址:D:\IdeaProjects\feifan\feifan-upms\feifan-upms-web\src\main\resources
image.png
-
修改地址后打包报错的解决方案
- 退出
target文件夹,再运行打包命令
image.png
解决冲突
冲突如下:
image.png
路径及代码如下(application-dev.yml):
image.png
spring:
datasource:
driver-class-name: com.mysql.jdbc.Driver
username: root
password: 123456
url: jdbc:mysql://192.168.3.8:3306/management?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
motan:
zookeeper: 127.0.0.1:2181
application: dbMotanService
group: dbservice
module: motan-db-rpc
logging:
level:
root: info
com.feifan: debug
config: classpath:logback-dev.xml
路径及代码如下:
image.png
cas:
client:
service: http://192.168.3.9:8083/etm/login/cas
authentication:
loginUrl: http://192.168.3.9:8088/cas/login
serviceUrlPrefix: http://192.168.3.9:8088/cas
logoutSuccessUrl: http://192.168.3.9:8088/cas/logout?service=http://192.168.3.9:8083/etm/
filterLogoutProcessesUrl: /logout/cas
spring:
thymeleaf:
cache: false
motan:
zookeeper: 192.168.3.9:2181
application: dbMotanService
group: dbservice
module: motan-db-rpc
logging:
level:
root: info
com.feifan: debug
frontPath: http://192.168.3.6:8006
解决跨域问题
修改下图的IP地址
image.png







网友评论