forked from YunaiV/ruoyi-vue-pro
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'source/master'
# Conflicts: # yudao-module-infra/yudao-module-infra-biz/src/main/java/cn/iocoder/yudao/module/infra/service/file/FileServiceImpl.java
- Loading branch information
Showing
274 changed files
with
1,454 additions
and
5,507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,3 +45,5 @@ nbdist/ | |
|
||
### JRebel ### | ||
rebel.xml | ||
|
||
application-my.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,4 +58,8 @@ public static File createTempFile() { | |
return file; | ||
} | ||
|
||
|
||
public static void main(String[] args) { | ||
} | ||
|
||
} |
48 changes: 0 additions & 48 deletions
48
yudao-framework/yudao-spring-boot-starter-activiti/pom.xml
This file was deleted.
Oops, something went wrong.
45 changes: 0 additions & 45 deletions
45
.../src/main/java/cn/iocoder/yudao/framework/activiti/config/YudaoActivitiConfiguration.java
This file was deleted.
Oops, something went wrong.
109 changes: 0 additions & 109 deletions
109
...r-activiti/src/main/java/cn/iocoder/yudao/framework/activiti/core/util/ActivitiUtils.java
This file was deleted.
Oops, something went wrong.
37 changes: 0 additions & 37 deletions
37
...ctiviti/src/main/java/cn/iocoder/yudao/framework/activiti/core/web/ActivitiWebFilter.java
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
...boot-starter-activiti/src/main/java/cn/iocoder/yudao/framework/activiti/package-info.java
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
...framework/yudao-spring-boot-starter-activiti/src/main/resources/META-INF/spring.factories
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...-starter-file/src/main/java/cn/iocoder/yudao/framework/file/core/utils/FileTypeUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package cn.iocoder.yudao.framework.file.core.utils; | ||
|
||
import com.alibaba.ttl.TransmittableThreadLocal; | ||
import lombok.SneakyThrows; | ||
import org.apache.tika.Tika; | ||
|
||
import java.io.ByteArrayInputStream; | ||
|
||
/** | ||
* 文件类型 Utils | ||
* | ||
* @author 芋道源码 | ||
*/ | ||
public class FileTypeUtils { | ||
|
||
private static final ThreadLocal<Tika> TIKA = TransmittableThreadLocal.withInitial(Tika::new); | ||
|
||
/** | ||
* 获得文件的 mineType | ||
* | ||
* @param data 文件内容 | ||
* @return mineType | ||
*/ | ||
@SneakyThrows | ||
public static String getMineType(byte[] data) { | ||
return TIKA.get().detect(new ByteArrayInputStream(data)); | ||
} | ||
|
||
} |
Oops, something went wrong.