摘要:
当controller中的方法直接用参数接收前端传递的参数时 日期格式不匹配会报如下错误:Failed to convert value of type 'java.lang.String' to required type 'java.util.Date';,就是说类型转换异常 @PostMapp 阅读全文
摘要:
普通线程实现异步,但频繁创建、销毁线程比较耗资源,所以一般交给线程池执行 //创建需要异步执行的逻辑 public class AsyncThread implements Runnable{ @Override public void run() { System.out.println("异步线 阅读全文