Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibizlab-generator
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibizlab-generator
提交
cf83eadb
提交
cf83eadb
编写于
1月 14, 2022
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
引用修复
上级
dabd888a
变更
8
展开全部
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
380 行增加
和
42 行删除
+380
-42
application-{{apps}}-prod.yml.hbs
...ps}}/src/main/resources/application-{{apps}}-prod.yml.hbs
+1
-4
LiquibaseConfiguration.java.hbs
...geName}}/core/util/config/LiquibaseConfiguration.java.hbs
+2
-0
AuthPermissionEvaluator.java.hbs
...ame}}/core/util/security/AuthPermissionEvaluator.java.hbs
+328
-0
application-sys.yml.hbs
...ectName}}-core/src/main/resources/application-sys.yml.hbs
+20
-20
pom.xml.hbs
...sources/templ/r7/{{projectName}}-dependencies/pom.xml.hbs
+21
-15
pom.xml.hbs
...n/resources/templ/r7/{{projectName}}-provider/pom.xml.hbs
+5
-0
SwaggerConfiguration.java.hbs
...ava/{{packageName}}/swagger/SwaggerConfiguration.java.hbs
+1
-1
{{system.codeName}}{{api.codeName}}Application.java.hbs
...}/{{system.codeName}}{{api.codeName}}Application.java.hbs
+2
-2
未找到文件。
modules/ibizlab-generator-core/src/main/resources/templ/r7/{{projectName}}-app/{{projectName}}-app-{{apps}}/src/main/resources/application-{{apps}}-prod.yml.hbs
浏览文件 @
cf83eadb
server:
port:
{{#if
app
.
httpPort
}}{{
app
.
httpPort
}}{{else}}
8080
{{/if}}
spring:
spring:
cache:
cache:
redis:
redis:
...
@@ -62,6 +58,7 @@ ibiz:
...
@@ -62,6 +58,7 @@ ibiz:
### 启用Gzip压缩
### 启用Gzip压缩
server:
server:
port:
{{#if
app
.
httpPort
}}{{
app
.
httpPort
}}{{else}}
8080
{{/if}}
compression:
compression:
enabled: true
enabled: true
mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
mime-types: application/javascript,text/css,application/json,application/xml,text/html,text/xml,text/plain
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/{{projectName}}-core/src/main/java/{{packageName}}/core/util/config/LiquibaseConfiguration.java.hbs
浏览文件 @
cf83eadb
package
{{
packageName
}}
.core.util.config;
package
{{
packageName
}}
.core.util.config;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Configuration;
...
@@ -21,6 +22,7 @@ import com.alibaba.druid.pool.DruidDataSource;
...
@@ -21,6 +22,7 @@ import com.alibaba.druid.pool.DruidDataSource;
import org.apache.ibatis.session.SqlSessionFactory;
import org.apache.ibatis.session.SqlSessionFactory;
@Configuration
@Configuration
@ConditionalOnProperty( name = "spring.datasource.isSyncDBSchema", havingValue = "true")
public class LiquibaseConfiguration {
public class LiquibaseConfiguration {
/**
/**
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/{{projectName}}-core/src/main/java/{{packageName}}/core/util/security/AuthPermissionEvaluator.java.hbs
0 → 100644
浏览文件 @
cf83eadb
此差异已折叠。
点击以展开。
modules/ibizlab-generator-core/src/main/resources/templ/r7/{{projectName}}-core/src/main/resources/application-sys.yml.hbs
浏览文件 @
cf83eadb
...
@@ -43,26 +43,6 @@ spring:
...
@@ -43,26 +43,6 @@ spring:
isSyncDBSchema: false
isSyncDBSchema: false
defaultSchema:
{{
projectName
}}
defaultSchema:
{{
projectName
}}
{{#if
system
.
enableDS
}}
{{#if
system
.
enableDS
}}
conf: classpath:liquibase/master.xml
filters: stat,wall,log4j2
#配置初始化大小/最小/最大
initial-size: 1
min-idle: 1
max-active: 20
#获取连接等待超时时间
max-wait: 60000
#间隔多久进行一次检测,检测需要关闭的空闲连接
time-between-eviction-runs-millis: 60000
#一个连接在池中最小生存的时间
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
#打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20
{{else}}
dynamic:
dynamic:
druid: #以下是全局默认值,可以全局更改
druid: #以下是全局默认值,可以全局更改
filters: stat,log4j2
filters: stat,log4j2
...
@@ -100,6 +80,26 @@ spring:
...
@@ -100,6 +80,26 @@ spring:
conf: classpath:liquibase/master.xml
conf: classpath:liquibase/master.xml
isSyncDBSchema: ${spring.datasource.isSyncDBSchema}
isSyncDBSchema: ${spring.datasource.isSyncDBSchema}
defaultSchema: ${spring.datasource.defaultSchema}
defaultSchema: ${spring.datasource.defaultSchema}
{{else}}
conf: classpath:liquibase/master.xml
filters: stat,wall,log4j2
#配置初始化大小/最小/最大
initial-size: 1
min-idle: 1
max-active: 20
#获取连接等待超时时间
max-wait: 60000
#间隔多久进行一次检测,检测需要关闭的空闲连接
time-between-eviction-runs-millis: 60000
#一个连接在池中最小生存的时间
min-evictable-idle-time-millis: 300000
validation-query: SELECT 1 FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
#打开PSCache,并指定每个连接上PSCache的大小。oracle设为true,mysql设为false。分库分表较多推荐设置为false
pool-prepared-statements: false
max-pool-prepared-statement-per-connection-size: 20
{{/if}}
{{/if}}
#Mybatis-plus配置
#Mybatis-plus配置
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/{{projectName}}-dependencies/pom.xml.hbs
浏览文件 @
cf83eadb
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<parent>
<parent>
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.2.
1
.RELEASE
</version>
<version>
2.2.
5
.RELEASE
</version>
</parent>
</parent>
<properties>
<properties>
...
@@ -25,22 +25,22 @@
...
@@ -25,22 +25,22 @@
<spring-cloud-security
.
version
>
2.1.1.RELEASE
</spring-cloud-security
.version
>
<spring-cloud-security
.
version
>
2.1.1.RELEASE
</spring-cloud-security
.version
>
<!-- openfeign -->
<!-- openfeign -->
<spring-cloud-openfeign
.
version
>
2.2.
1
.RELEASE
</spring-cloud-openfeign
.version
>
<spring-cloud-openfeign
.
version
>
2.2.
5
.RELEASE
</spring-cloud-openfeign
.version
>
<!-- Zuul网关 -->
<!-- Zuul网关 -->
<spring-cloud-starter-netflix-zuul
.
version
>
2.2.
1
.RELEASE
</spring-cloud-starter-netflix-zuul
.version
>
<spring-cloud-starter-netflix-zuul
.
version
>
2.2.
5
.RELEASE
</spring-cloud-starter-netflix-zuul
.version
>
<!-- Spring Cloud Alibaba(2.2.x.RELEASE) & Spring Cloud(Spring Cloud Greenwich) & Spring Boot(2.2.x.RELEASE) compatibility -->
<!-- Spring Cloud Alibaba(2.2.x.RELEASE) & Spring Cloud(Spring Cloud Greenwich) & Spring Boot(2.2.x.RELEASE) compatibility -->
<spring-cloud-alibaba
.
version
>
2.2.1.RELEASE
</spring-cloud-alibaba
.version
>
<spring-cloud-alibaba
.
version
>
2.2.1.RELEASE
</spring-cloud-alibaba
.version
>
<!-- eureka微服务注册中心 -->
<!-- eureka微服务注册中心 -->
<eureka-client
.
version
>
2.2.
1
.RELEASE
</eureka-client
.version
>
<eureka-client
.
version
>
2.2.
5
.RELEASE
</eureka-client
.version
>
<!--Java Web Token-->
<!--Java Web Token-->
<jsonwebtoken-jjwt
.
version
>
0.9.1
</jsonwebtoken-jjwt
.version
>
<jsonwebtoken-jjwt
.
version
>
0.9.1
</jsonwebtoken-jjwt
.version
>
<!--caffeine缓存-->
<!--caffeine缓存-->
<caffeine
-cache
.
version
>
2.6.0
</caffeine-cach
e
.version
>
<caffeine
.
version
>
2.8.1
</caffein
e
.version
>
<!--反序列化工具-->
<!--反序列化工具-->
<kryo
.
version
>
4.0.2
</kryo
.version
>
<kryo
.
version
>
4.0.2
</kryo
.version
>
...
@@ -80,24 +80,24 @@
...
@@ -80,24 +80,24 @@
<baomidou-jobs
.
version
>
1.0.3
</baomidou-jobs
.version
>
<baomidou-jobs
.
version
>
1.0.3
</baomidou-jobs
.version
>
<!-- 阿里sentinel熔断器 -->
<!-- 阿里sentinel熔断器 -->
<alibaba-sentinel
.
version
>
2.
1
.1.RELEASE
</alibaba-sentinel
.version
>
<alibaba-sentinel
.
version
>
2.
2
.1.RELEASE
</alibaba-sentinel
.version
>
<!-- 阿里seata分布式事务 -->
<!-- 阿里seata分布式事务 -->
<alibaba-seata
.
version
>
1.3.0
</alibaba-seata
.version
>
<alibaba-seata
.
version
>
1.3.0
</alibaba-seata
.version
>
<o
racle
.
version
>
19.8.0.0
</oracle
.version
>
<o
jdbc
.
version
>
19.8.0.0
</ojdbc
.version
>
<postgresql
.
version
>
42.2.
6
</postgresql
.version
>
<postgresql
.
version
>
42.2.
10
</postgresql
.version
>
<mysql
.
version
>
8.0.1
8
</mysql
.version
>
<mysql
.
version
>
8.0.1
9
</mysql
.version
>
<rocketmq
.
version
>
4.7.0
</rocketmq
.version
>
<rocketmq
.
version
>
4.7.0
</rocketmq
.version
>
<flowable-modeler
.
version
>
6.4.2
</flowable-modeler
.version
>
<flowable-modeler
.
version
>
6.4.2
</flowable-modeler
.version
>
<ibizlab-common
.
version
>
1.0.
2
</ibizlab-common
.version
>
<ibizlab-common
.
version
>
1.0.
3
</ibizlab-common
.version
>
<ibizlab-util
.
version
>
1.0.
2
</ibizlab-util
.version
>
<ibizlab-util
.
version
>
1.0.
3
</ibizlab-util
.version
>
</properties>
</properties>
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
<dependency>
<dependency>
<groupId>
com.github.ben-manes.caffeine
</groupId>
<groupId>
com.github.ben-manes.caffeine
</groupId>
<artifactId>
caffeine
</artifactId>
<artifactId>
caffeine
</artifactId>
<version>
${caffeine
-cache
.version}
</version>
<version>
${caffeine.version}
</version>
</dependency>
</dependency>
<dependency>
<dependency>
...
@@ -301,12 +301,12 @@
...
@@ -301,12 +301,12 @@
<dependency>
<dependency>
<groupId>
com.oracle.database.jdbc
</groupId>
<groupId>
com.oracle.database.jdbc
</groupId>
<artifactId>
ojdbc8
</artifactId>
<artifactId>
ojdbc8
</artifactId>
<version>
${o
racle
.version}
</version>
<version>
${o
jdbc
.version}
</version>
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
com.oracle.database.nls
</groupId>
<groupId>
com.oracle.database.nls
</groupId>
<artifactId>
orai18n
</artifactId>
<artifactId>
orai18n
</artifactId>
<version>
${o
racle
.version}
</version>
<version>
${o
jdbc
.version}
</version>
</dependency>
</dependency>
<!-- PostgreSQL驱动包 -->
<!-- PostgreSQL驱动包 -->
<dependency>
<dependency>
...
@@ -319,6 +319,12 @@
...
@@ -319,6 +319,12 @@
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
<version>
${mysql.version}
</version>
<version>
${mysql.version}
</version>
<exclusions>
<exclusion>
<artifactId>
protobuf-java
</artifactId>
<groupId>
com.google.protobuf
</groupId>
</exclusion>
</exclusions>
</dependency>
</dependency>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/{{projectName}}-provider/pom.xml.hbs
浏览文件 @
cf83eadb
...
@@ -27,6 +27,11 @@
...
@@ -27,6 +27,11 @@
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-zuul
</artifactId>
</dependency>
</dependencies>
</dependencies>
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/{{projectName}}-provider/{{projectName}}-provider-{{apis}}/src/main/java/{{packageName}}/swagger/SwaggerConfiguration.java.hbs
浏览文件 @
cf83eadb
...
@@ -59,7 +59,7 @@ public class SwaggerConfiguration {
...
@@ -59,7 +59,7 @@ public class SwaggerConfiguration {
.build()
.build()
)
)
.select()
.select()
.apis(RequestHandlerSelectors.basePackage("
{{
packageName
}}
.
{{
api
.
codeName
}}
"))
.apis(RequestHandlerSelectors.basePackage("
{{
packageName
}}
.
{{
lowerCase
api
.
codeName
}}
"))
.paths(PathSelectors.any())
.paths(PathSelectors.any())
.build();
.build();
}
}
...
...
modules/ibizlab-generator-core/src/main/resources/templ/r7/{{projectName}}-provider/{{projectName}}-provider-{{apis}}/src/main/java/{{packageName}}/{{apis}}/{{system.codeName}}{{api.codeName}}Application.java.hbs
浏览文件 @
cf83eadb
...
@@ -25,11 +25,11 @@ import java.util.List;
...
@@ -25,11 +25,11 @@ import java.util.List;
@EnableTransactionManagement
@EnableTransactionManagement
@ComponentScan(basePackages = {"
{{
packageName
}}
","cn.ibizlab.util"}
@ComponentScan(basePackages = {"
{{
packageName
}}
","cn.ibizlab.util"}
// ,excludeFilters={
// ,excludeFilters={
// @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX,pattern="
{{
packageName
}}
.
${item.codeName?lower_case
}.rest.xxx"),
// @ComponentScan.Filter(type= org.springframework.context.annotation.FilterType.REGEX,pattern="
{{
packageName
}}
.
{{
lowerCase
api
.
codeName
}
}
.rest.xxx"),
// }
// }
)
)
@EnableMongoRepositories(basePackages = {"
{{
packageName
}}
"})
@EnableMongoRepositories(basePackages = {"
{{
packageName
}}
"})
@MapperScan(
"
{{
packageName
}}
.*.mapper"
)
@MapperScan(
{"
{{
packageName
}}
.*.mapper","cn.ibizlab.util.mapper" }
)
@SpringBootApplication(exclude = {
@SpringBootApplication(exclude = {
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class,
{{#
unless
system
.
enableMongo
}}
{{#
unless
system
.
enableMongo
}}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录