Compare commits

...

13 Commits
0.3.0 ... 0.4.1

Author SHA1 Message Date
曾文豪
1b1073eab1 publish 0.4.1 2023-02-17 15:22:51 +08:00
曾文豪
56e2a66bdf fixed:修改sql文件执行过滤的判断方式 2023-02-17 15:22:11 +08:00
曾文豪
c5654474b0 perf:增加runtime目录,日志也移动到runtime目录中 2023-02-17 14:55:32 +08:00
曾文豪
a125c6f907 publish 0.4.0 2023-02-17 10:07:31 +08:00
曾文豪
a314351fc9 publish 0.0.4 2023-02-17 10:07:16 +08:00
‘毛文春’
23493afb2f 允许TokenIgnore标记在类上面 2023-02-17 10:03:56 +08:00
曾文豪
e8369320ab perf:调整插件 2023-02-17 09:54:56 +08:00
曾文豪
a19fa65166 chore:标记ademo模块不发布到maven仓库中 2023-02-16 13:17:15 +08:00
曾文豪
ea12290f03 perf:调整依赖 2023-02-15 15:47:34 +08:00
曾文豪
c6662407a7 Revert "publish 0.4.0"
This reverts commit f0493cea
2023-02-15 15:43:15 +08:00
曾文豪
29e45fff7f perf:调整pom 2023-02-09 15:03:35 +08:00
曾文豪
e7089d9cc5 publish 0.4.0 2023-02-09 14:47:04 +08:00
曾文豪
f0493cea77 publish 0.4.0 2023-02-09 14:39:27 +08:00
17 changed files with 38 additions and 29 deletions

27
pom.xml
View File

@@ -6,7 +6,7 @@
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
<packaging>pom</packaging>
<name>springboot-parent</name>
<description>杭州铁晟科技有限公司基础依赖</description>
@@ -57,55 +57,55 @@
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-db-migration</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-login</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-web</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-util</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-platform</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-message</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-encrypt</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-annotation</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-poi</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</dependency>
<dependency>
@@ -135,12 +135,13 @@
<plugins>
<plugin>
<groupId>com.tiesheng.springboot-plugin</groupId>
<artifactId>launcher-maven-plugin</artifactId>
<version>0.0.2</version>
<artifactId>tiesheng-maven-plugin</artifactId>
<version>0.0.3</version>
<executions>
<execution>
<goals>
<goal>initScript</goal>
<goal>initStartScript</goal>
<goal>mysqlComparison</goal>
</goals>
</execution>
</executions>

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-ademo</artifactId>
@@ -16,6 +16,8 @@
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!-- 该模块不发布到maven仓库 -->
<maven.deploy.skip>true</maven.deploy.skip>
</properties>
<dependencies>
@@ -36,7 +38,7 @@
<plugins>
<plugin>
<groupId>com.tiesheng.springboot-plugin</groupId>
<artifactId>launcher-maven-plugin</artifactId>
<artifactId>tiesheng-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>

View File

@@ -18,4 +18,4 @@ spring:
## 日志
logging:
file:
name: logs/tiesheng.log
name: runtime/logs/tiesheng.log

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-annotation</artifactId>

View File

@@ -5,7 +5,7 @@ import java.lang.annotation.*;
/**
* @author hao
*/
@Target(ElementType.METHOD)
@Target({ElementType.METHOD,ElementType.TYPE})
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface TokenIgnore {

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-db-migration</artifactId>

View File

@@ -21,7 +21,7 @@ public class DbMigrationConfig {
private String table = "core_config_db";
private List<String> locations = CollUtil.newArrayList("classpath*:db/migration/*.sql");
private String ignoreSqls = "drop,delete";
private String ignoreSqls = "drop table,delete from";
/**
* 检查数据库是否存在

View File

@@ -91,7 +91,7 @@ public class DbMigrationInitializer implements ServletContextInitializer {
if (StrUtil.isEmpty(sql)) {
continue;
}
if (StrUtil.startWithAnyIgnoreCase(sql, StrUtil.splitToArray(dbMigrationConfig.getIgnoreSqls(), ","))) {
if (StrUtil.containsAnyIgnoreCase(sql, StrUtil.splitToArray(dbMigrationConfig.getIgnoreSqls(), ","))) {
continue;
}
try {

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-encrypt</artifactId>

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-login</artifactId>

View File

@@ -46,6 +46,12 @@ public class TsTokenAspect {
@Before("methodArgs()")
public void before(JoinPoint joinPoint) {
Object aThis = joinPoint.getTarget();
TokenIgnore annotation = aThis.getClass().getAnnotation(TokenIgnore.class);
if (annotation != null) {
return;
}
// 过滤不要需要验证的接口
MethodSignature signature = (MethodSignature) joinPoint.getSignature();
Method method = signature.getMethod();

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-message</artifactId>

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-platform</artifactId>

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-poi</artifactId>

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-util</artifactId>

View File

@@ -18,7 +18,7 @@ import java.io.RandomAccessFile;
public class Ip2regionConfig {
private String dbUrl = "http://git.kepai365.com/zeng_wenhao/kepai-repo/raw/master/ipdb/ip2region.db";
private String dbPath = System.getProperty("user.dir") + "/config/ip2region.db";
private String dbPath = System.getProperty("user.dir") + "/runtime/ip2region.db";
///////////////////////////////////////////////////////////////////////////
// 逻辑方法

View File

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>0.3.0</version>
<version>0.4.1</version>
</parent>
<artifactId>springboot-web</artifactId>