Skip to content

Commit

Permalink
Merge pull request #26 from skyclouds2001/dev
Browse files Browse the repository at this point in the history
Release v1.6.0
  • Loading branch information
skyclouds2001 authored Nov 3, 2024
2 parents a00b7f3 + 73e9e5a commit 4fca6cc
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 54 deletions.
25 changes: 15 additions & 10 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ reviews:
drafts: false
base_branches: []
tools:
ast-grep:
essential_rules: true
shellcheck:
enabled: true
ruff:
enabled: true
enabled: false
markdownlint:
enabled: true
github-checks:
Expand All @@ -38,16 +40,15 @@ reviews:
enabled_only: false
level: default
biome:
enabled: true
enabled: false
hadolint:
enabled: true
swiftlint:
enabled: true
enabled: false
phpstan:
enabled: true
level: default
enabled: false
golangci-lint:
enabled: true
enabled: false
yamllint:
enabled: true
gitleaks:
Expand All @@ -57,19 +58,23 @@ reviews:
detekt:
enabled: true
eslint:
enabled: true
enabled: false
rubocop:
enabled: true
enabled: false
buf:
enabled: true
enabled: false
regal:
enabled: true
enabled: false
actionlint:
enabled: true
pmd:
enabled: true
cppcheck:
enabled: false
semgrep:
enabled: true
circleci:
enabled: false
chat:
auto_reply: true
knowledge_base:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].0
- uses: actions/[email protected].2
- uses: softprops/[email protected]
with:
body: |
Expand Down
42 changes: 13 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>org.sky.fly</groupId>
<artifactId>springboot-template-sky</artifactId>
<version>1.5.0</version>
<version>1.6.0</version>
<packaging>jar</packaging>

<name>springboot-template-sky</name>
Expand Down Expand Up @@ -71,7 +71,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.4</version>
<version>3.3.5</version>
<relativePath/>
</parent>

Expand All @@ -85,21 +85,12 @@

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
<version>3.3.4</version>
</dependency>

<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.5.8</version>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter-test</artifactId>
<version>3.5.8</version>
<artifactId>mybatis-plus-bom</artifactId>
<version>3.5.9</version>
<type>pom</type>
<scope>import</scope>
</dependency>
<dependency>
<groupId>p6spy</groupId>
Expand Down Expand Up @@ -149,19 +140,12 @@
<artifactId>mysql-connector-j</artifactId>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
<version>3.0.4</version>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
</dependency>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.mybatis</groupId>
<artifactId>mybatis-spring</artifactId>
</exclusion>
</exclusions>
<artifactId>mybatis-plus-jsqlparser</artifactId>
</dependency>
<dependency>
<groupId>p6spy</groupId>
Expand Down Expand Up @@ -221,7 +205,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
Expand All @@ -243,7 +227,7 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.6.4</version>
<version>4.8.6.5</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
Expand Down Expand Up @@ -312,7 +296,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.5.0</version>
<version>3.6.0</version>
<configuration>
<configLocation>checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
Expand All @@ -332,7 +316,7 @@
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
<version>4.8.6.4</version>
<version>4.8.6.5</version>
<configuration>
<effort>Max</effort>
<threshold>Low</threshold>
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/sky/fly/config/Knife4jConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,19 @@
* knife4j configuration class
*
* @author skyclouds2001
* @version 1.1.0
* @version 1.6.0
* @since 1.0.0
*/
@Configuration
@EnableKnife4j
public class Knife4jConfig {

@Bean
public OpenAPI openAPI() {
OpenAPI openAPI() {
return new OpenAPI()
.info(new Info()
.title("springboot-template-sky 接口文档")
.version("1.1.0")
.version("1.6.0")
.description("springboot-template-sky 接口文档")
.termsOfService("https://skyclouds2001.github.io/")
.contact(new Contact()
Expand Down
28 changes: 17 additions & 11 deletions src/main/java/org/sky/fly/config/MyBatisPlusConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@
import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor;
import com.baomidou.mybatisplus.extension.plugins.handler.TenantLineHandler;
import com.baomidou.mybatisplus.extension.plugins.inner.*;
import com.baomidou.mybatisplus.extension.plugins.inner.BlockAttackInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.DataChangeRecorderInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.IllegalSQLInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.OptimisticLockerInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.inner.TenantLineInnerInterceptor;

import net.sf.jsqlparser.expression.Expression;
import net.sf.jsqlparser.expression.LongValue;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
Expand All @@ -15,7 +22,7 @@
* mybatis-plus configuration class
*
* @author skyclouds2001
* @version 1.1.0
* @version 1.6.0
* @since 1.0.0
*/
@Configuration
Expand All @@ -24,17 +31,16 @@
public class MyBatisPlusConfig {

@Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
interceptor.addInnerInterceptor(new TenantLineInnerInterceptor(
new TenantLineHandler() {
@Override
public Expression getTenantId() {
return new LongValue(1);
}
TenantLineInnerInterceptor tenantInterceptor = new TenantLineInnerInterceptor();
tenantInterceptor.setTenantLineHandler(new TenantLineHandler() {
@Override
public Expression getTenantId() {
return new LongValue(1);
}
));
});
interceptor.addInnerInterceptor(tenantInterceptor);
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor());
interceptor.addInnerInterceptor(new IllegalSQLInnerInterceptor());
Expand Down

0 comments on commit 4fca6cc

Please sign in to comment.