Commit 51b01cfb by liuyf

平安工单需求

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@31719 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 38f82134
......@@ -2,7 +2,7 @@ package com.glsx.publicservice.util.fastdfs;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import org.apache.commons.io.FilenameUtils;
import org.slf4j.Logger;
......@@ -66,7 +66,7 @@ public class FastDFSClientWrapper {
* @return
*/
public static String uploadFile(String content, String fileExtension) {
byte[] buff = content.getBytes(Charset.forName("UTF-8"));
byte[] buff = content.getBytes(StandardCharsets.UTF_8);
ByteArrayInputStream stream = new ByteArrayInputStream(buff);
StorePath storePath = storageClient.uploadFile(stream, buff.length, fileExtension, null);
return getResAccessUrl(storePath);
......
......@@ -2,7 +2,7 @@ spring.application.name=car-service-publicservice
server.port=8096
#nacos\u914D\u7F6E
spring.cloud.nacos.config.group=BHG_GROUP
spring.cloud.nacos.config.server-addr=192.168.0.63:8848
spring.cloud.nacos.config.server-addr=192.168.3.206:8848
#configClient
#spring.cloud.config.name=${spring.application.name}
#spring.cloud.config.profile=local
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!