上一页 1 ··· 3 4 5 6 7 8 9 下一页

2018年11月1日

java 图片转换成base64字符串

摘要: import java.io.ByteArrayOutputStream; import java.io.FileInputStream;import java.io.FileOutputStream;import java.io.IOException;import java.io.InputSt 阅读全文

posted @ 2018-11-01 17:01 天天天12345 阅读(223) 评论(0) 推荐(0) 编辑

2018年10月11日

maven install 错误

摘要: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project spring-boot-admin-server: Compi 阅读全文

posted @ 2018-10-11 18:48 天天天12345 阅读(163) 评论(0) 推荐(0) 编辑

2018年10月10日

spring boot启动后执行方法

摘要: @Componentpublic class InitProject implements ApplicationRunner { private static final Logger logger = LoggerFactory.getLogger(InitProject.class); @Ov 阅读全文

posted @ 2018-10-10 15:23 天天天12345 阅读(179) 评论(0) 推荐(0) 编辑

java 定时任务多线程处理

摘要: @Configuration @EnableScheduling public class ScheduleConfig implements SchedulingConfigurer, AsyncConfigurer{ /** 异步处理 */ public void configureTasks(ScheduledTaskRegistrar taskRegistrar){ TaskSched... 阅读全文

posted @ 2018-10-10 15:22 天天天12345 阅读(5557) 评论(0) 推荐(0) 编辑

java 生成txt文件

摘要: FileWriter fileWriter = new FileWriter("C:/Users/li/Desktop/a.txt"); fileWriter.write(“aaaa”)); fileWriter.flush(); fileWriter.close(); 阅读全文

posted @ 2018-10-10 15:21 天天天12345 阅读(372) 评论(0) 推荐(0) 编辑

java 方法超时

摘要: public void getcd() { logger.info("任务开始! "); final ExecutorService exec = Executors.newFixedThreadPool(1); Callable<String> call = new Callable<String 阅读全文

posted @ 2018-10-10 11:23 天天天12345 阅读(225) 评论(0) 推荐(0) 编辑

2018年8月28日

spring boot启动报错

摘要: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Er 阅读全文

posted @ 2018-08-28 13:42 天天天12345 阅读(563) 评论(0) 推荐(0) 编辑

2018年8月6日

spring boot启动报错

摘要: 2018-08-06 15:38:24.400 WARN org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext Line:550 - Exception encountered 阅读全文

posted @ 2018-08-06 15:41 天天天12345 阅读(1200) 评论(0) 推荐(0) 编辑

2018年8月2日

java爬虫代理

摘要: public static Document getDocByJsoups(String href) { String ip = "124.47.7.38"; int port = 80; Document doc = null; try { Proxy proxy = new Proxy(Prox 阅读全文

posted @ 2018-08-02 14:56 天天天12345 阅读(120) 评论(0) 推荐(0) 编辑

utc时间转成local时间

摘要: public static Date utcToLocal(String utcTime){ SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); sdf.setTimeZone(TimeZone.getTimeZ 阅读全文

posted @ 2018-08-02 14:55 天天天12345 阅读(365) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7 8 9 下一页

导航