wiki优化
This commit is contained in:
@@ -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相关配置
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user