wiki优化

This commit is contained in:
暮光:城中城
2019-03-05 23:15:47 +08:00
parent 7357058694
commit 7d8fa1ff82
20 changed files with 313 additions and 150 deletions

View File

@@ -3,17 +3,16 @@ spring:
name: zyplayer-doc-manage
# mvc:
# static-path-pattern: /**
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
server:
port: 8082
servlet:
context-path: /zyplayer-doc-manage
multipart:
enabled: true
max-file-size: 100MB
max-request-size: 100MB
zyplayer:
doc:
# dubbo相关配置

View File

@@ -0,0 +1,19 @@
package com.zyplayer.doc.test;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
public class MediaTypeTest {
public static void main(String[] args) throws IOException {
// MediaType xx = MediaType.parseMediaType("png");
// System.out.println(xx.getSubtype());
File file = new File("e:/tmp/wikiFiles/2019/03/04/dcf4b4357d5a454180cf54a5d8a2f868.jpg");
// String path = file.get
String contentType = Files.probeContentType(file.toPath());
System.out.println(contentType);
}
}