启动 Java 服务的步骤

2019-10-16  本文已影响0人  前端新阳
  java -jar target\cas.war
image.png
  git pull origin dev-1.0-wsm    // 更新代码
  
  mvn clean install -DskipTests=true      // 打包
image.png
  java -jar target\feifan-db-service-impl-1.0.0-SNAPSHOT.jar
image.png
  java -jar target\feifan-upms-web-1.0.0-SNAPSHOT.jar
image.png
  java -jar target\feifan-etm-web-1.0.0-SNAPSHOT.jar
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
上一篇 下一篇

猜你喜欢

热点阅读