摘要:
import com.sun.mail.imap.IMAPFolder; import com.sun.mail.imap.protocol.IMAPProtocol; import org.apache.tomcat.util.http.fileupload.IOUtils; import org 阅读全文
摘要:
package top.my.test.case1; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import ja 阅读全文
摘要:
public static JSONObject getToken(String appId,String appSecret){ String url="https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&app 阅读全文
摘要:
package com.test; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; 阅读全文
摘要:
import java.io.BufferedReader; import java.io.CharArrayWriter; import java.io.File; import java.io.FileReader; import java.io.FileWriter; import java. 阅读全文
摘要:
1、自动配置类: @Configuration public class AutoConfiguration { @Bean public ServletRegistrationBean registrationAxisServlet(AxisServlet axisServlet) { Servl 阅读全文
摘要:
import org.springframework.beans.BeansException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.App 阅读全文
摘要:
public static String toUtf8String(String s) { StringBuffer sb = new StringBuffer(); for (int i = 0; i < s.length(); i++) { char c = s.charAt(i); if (c 阅读全文
摘要:
经测试确认,当一个接口有多个实现时,调用时只会执行一个 有时候需要多个实现调用,方法示例如下: public interface TransCallbackInterface { public void callback(String taskId, int code, String fixed); 阅读全文
摘要:
public ResponseEntity<FileSystemResource> export(File file) { if (file == null) { return null; } HttpHeaders headers = new HttpHeaders(); headers.add( 阅读全文