|
|
3 年之前 | |
|---|---|---|
| bat | 3 年之前 | |
| lib | 3 年之前 | |
| src | 3 年之前 | |
| .bowerrc | 3 年之前 | |
| .gitignore | 3 年之前 | |
| README.md | 3 年之前 | |
| pom.xml | 3 年之前 |
Git克隆源代码到本地
git clone http://www.leanwo.com:3000/ShangHaiLeanwo/WorkflowServer.git
源代码导入到eclipse中。注意事项如下:
打开网址
http://127.0.0.1:82/workflow-app/
http://127.0.0.1:82/activiti/api
修改端口号,打开resources/Application.yml,修改属性server.port可以修改启动的端口号。
server:
port: 82
修改Eureka服务器的地址,尽量不要修改该属性,该属性来源于服务管理器(ServerManagement)中的eureka.serviceUrl.defaultZone属性
#Eureka Server服务器地址.
eureka:
client:
fetch-registry: true
register-with-eureka: true
serviceUrl:
defaultZone: http://localhost:88/eureka/
修改数据库的链接字符串,按照下面的提示,编辑resources/applicationContext.xml文件。
如果连接的是SQL SERVER数据库,那么注释下面的第2行。如果连接的是MySql数据,那么注释下面的第4行。
<!--加载MySql数据库的配置文件-->
<context:property-placeholder location="classpath:jdbc_mysql.properties"/>
<!--加载SQLServer数据库的配置文件-->
<context:property-placeholder location="classpath:jdbc_mssql.properties"/>
如果连接的是SQL SERVER数据,编辑文件resources/jdbc_mssql.properties文件。
如果连接的是MySql数据库,那么编辑文件resources/jdbc_mysql.properties文件。
修改数据库的链接字符串,用户名和密码。
jdbc.url=jdbc:sqlserver://127.0.0.1:1433;DatabaseName=ProdogAppAsset2020
jdbc.username=sa
jdbc.password=Sitp123123
hibernate.dialect=com.leanwo.activiti.db.LeanwoSqlServerDialect
如果程序启动的时候遇到Lock... 之类的日志,且程序不能正常启动,可能是启动过程中,程序被异常关闭,造成数据库脚本升级锁未被释放,需要在数据库执行下面的脚本解锁。
DELETE FROM [dbo].[ACT_FO_DATABASECHANGELOGLOCK]