diff --git a/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java b/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java
index bbb9d3c..80ddc3f 100644
--- a/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java
+++ b/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java
@@ -405,7 +405,7 @@ public class FileServiceImpl extends AbstractService implements IFileService {
*/
private boolean isTypeCorrect(String[] types, String fileType) {
for (String type : types) {
- if (fileType.equals(type)) {
+ if (StringUtils.equalsIgnoreCase(fileType, type)) {
return true;
}
}
@@ -421,7 +421,7 @@ public class FileServiceImpl extends AbstractService implements IFileService {
private String getFileType(String fileName) {
String[] names = fileName.split("\\.");
if (names != null) {
- return names[names.length - 1];
+ return names[names.length - 1].toLowerCase();
}
return "";
}
diff --git a/cloud-common/pom.xml b/cloud-common/pom.xml
index 76d2545..07ebdb1 100644
--- a/cloud-common/pom.xml
+++ b/cloud-common/pom.xml
@@ -128,10 +128,6 @@
javax.validation
validation-api
-
- org.hibernate
- hibernate-validator
-
diff --git a/pom.xml b/pom.xml
index 2167c71..54a8b7f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -52,7 +52,6 @@
1.4.0
3.17
2.0.1.Final
- 6.0.17.Final
1.6.1
2.3.0
2.10.4
@@ -202,11 +201,6 @@
validation-api
${validation.version}
-
- org.hibernate
- hibernate-validator
- ${hibernate-validation.version}
-