组件代码

jpaas-form为平台独立的运行应用,依赖Jpaas-system,jpaas-user的服务。同时也依赖平台的基础组件。
应用配置
在平台配置中,只需要配置application.yml文件,如下所示:
# 缺省数据源defaultDs:string:url: jdbc:mysql://${redxun.datasource.ip}:${redxun.datasource.port}/jpaas_form?characterEncoding=UTF-8&autoReconnect=true&useSSL=false&serverTimezone=GMT%2B8username: ${redxun.datasource.username}password: ${redxun.datasource.password}driver-class-name: com.mysql.cj.jdbc.DrivervalidationQuery: select 1filters: statint:initialSize: 5minIdle: 5maxActive: 10maxPoolPreparedStatementPerConnectionSize: 20long:maxWait: 60000timeBetweenEvictionRunsMillis: 60000minEvictableIdleTimeMillis: 300000boolean:testWhileIdle: truetestOnBorrow: falsetestOnReturn: falsepoolPreparedStatements: truemybatis:mapper-locations: classpath:/mapper/**/*Mapper.xml#文档配置redxun:swagger:enabled: truetitle: 单据中心description: 单据文档version: 1.0base-package: com.redxun.form.core.controllercache-manager:configs:- key: formsecond: 300- key: portal_menusecond: 1800#多租户配置tenant:enable: trueignoreTables:#单据表与字段前置prefix:table: W_colpre: F_#分布式事务配置seata:enabled: trueapplication-id: ${spring.application.name}tx-service-group: form_tx_groupenable-auto-data-source-proxy: true#注册至Nacos配置中registry:type: nacosnacos:application: seata-serverserver-addr: ${nacos.address}group: DEFAULT_GROUPuserName: nacospassword: nacos# Setea的Nacos的配置config:type: nacosnacos:namespace:serverAddr: ${nacos.address}group: SEATA_GROUPcluster: defaultuserName: nacospassword: nacos
以上配置只需要修改数据库的名即可。
包划分
基于表分类进行包拆分:
- bo
管理业务对象的实体,包括entity,dao,service,controller.

- core
管理业务对象的外围扩展功能,包括entity,dao,service,controller

文档更新时间: 2022-01-24 18:04 作者:zyg