Browse Source

集成BladeApplication

test
smallchill 6 years ago
parent
commit
1cfad8cc50
  1. 5
      blade-ops/blade-flowdesign/pom.xml
  2. 8
      blade-ops/blade-flowdesign/src/main/java/org/springblade/flowable/FlowDesignApplication.java
  3. 11
      blade-ops/blade-flowdesign/src/main/resources/application-dev.yml
  4. 7
      blade-ops/blade-flowdesign/src/main/resources/application-prod.yml
  5. 11
      blade-ops/blade-flowdesign/src/main/resources/application-test.yml
  6. 4
      blade-ops/blade-flowdesign/src/main/resources/application.yml

5
blade-ops/blade-flowdesign/pom.xml

@ -16,8 +16,9 @@
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<groupId>org.springblade</groupId>
<artifactId>blade-core-launch</artifactId>
<version>${bladex.tool.version}</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>

8
blade-ops/blade-flowdesign/src/main/java/org/springblade/flowable/FlowDesignApplication.java

@ -16,8 +16,10 @@
*/
package org.springblade.flowable;
import org.flowable.ui.common.conf.DevelopmentConfiguration;
import org.flowable.ui.common.rest.idm.remote.RemoteAccountResource;
import org.springframework.boot.SpringApplication;
import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.liquibase.LiquibaseAutoConfiguration;
import org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration;
@ -43,12 +45,12 @@ import static org.springblade.flowable.constant.FlowableConstant.FLOWABLE_BASE_P
)
@ComponentScan(
basePackages = {BASE_PACHAGE, FLOWABLE_BASE_PACKAGE},
excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {RemoteAccountResource.class})
excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {RemoteAccountResource.class, DevelopmentConfiguration.class})
)
public class FlowDesignApplication {
public static void main(String[] args) {
SpringApplication.run(FlowDesignApplication.class, args);
BladeApplication.run(AppConstant.APPLICATION_FLOWDESIGN_NAME, FlowDesignApplication.class, args);
}
}

11
blade-ops/blade-flowdesign/src/main/resources/application-dev.yml

@ -1,16 +1,5 @@
#数据源配置
spring:
redis:
##redis 单机环境配置
host: 127.0.0.1
port: 6379
password:
database: 0
ssl: false
##redis 集群环境配置
#cluster:
# nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
# commandTimeout: 5000
datasource:
url: jdbc:mysql://localhost:3306/bladex-flow?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
username: root

7
blade-ops/blade-flowdesign/src/main/resources/application-prod.yml

@ -0,0 +1,7 @@
#数据源配置
spring:
datasource:
url: jdbc:mysql://localhost:3306/bladex-flow?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
username: root
password: root
driver-class-name: com.mysql.cj.jdbc.Driver

11
blade-ops/blade-flowdesign/src/main/resources/application-test.yml

@ -1,16 +1,5 @@
#数据源配置
spring:
redis:
##redis 单机环境配置
host: 127.0.0.1
port: 6379
password:
database: 0
ssl: false
##redis 集群环境配置
#cluster:
# nodes: 127.0.0.1:7001,127.0.0.1:7002,127.0.0.1:7003
# commandTimeout: 5000
datasource:
url: jdbc:mysql://localhost:3306/bladex-flow?useSSL=false&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true
username: root

4
blade-ops/blade-flowdesign/src/main/resources/application.yml

@ -2,10 +2,6 @@ server:
port: 9999
spring:
application:
name: blade-flowdesign
profiles:
active: test
thymeleaf:
cache: false
mode: LEGACYHTML5

Loading…
Cancel
Save