05 2021 档案
摘要:批量图片裁剪 pom.xml <dependency> <groupId>com.google.guava</groupId> <artifactId>guava</artifactId> <version>17.0</version> </dependency> <dependency> <gro
阅读全文
摘要:Mysql /** * 获取一个新的科目编码 * * @param parentCode 上级科目代码 * @author 吕嘉鸣 */ @Override public String getNewCode(String subjectTableName, Long deptId, String p
阅读全文
摘要:Controller import java.util.HashMap; import java.util.Map; import java.util.Random; import java.util.concurrent.TimeUnit; import com.alibaba.fastjson.
阅读全文
摘要:gradle compile group: 'com.github.penggle', name: 'kaptcha', version: '2.3.2' demo import com.google.code.kaptcha.Constants; import com.google.code.ka
阅读全文
摘要:gradle compile group: 'org.apache.poi', name: 'poi', version: '3.9'; compile group: 'org.apache.poi', name: 'poi-excelant', version: '3.9'; compile gr
阅读全文
摘要:gradle compile group: 'org.apache.poi', name: 'poi', version: '3.9'; compile group: 'org.apache.poi', name: 'poi-excelant', version: '3.9'; compile gr
阅读全文
摘要:yml配置redis spring: redis: database: 0 host: 101.201.148.143 port: 6379 timeout: 1000 jedis: pool: max-active: 8 max-wait: -1 max-idle: 8 min-idle: 0 d
阅读全文
摘要:Controller /** * 下载文件 */ @GetMapping(value = "/downloadFile") public HttpResult downloadFile(HttpServletResponse response, HttpServletRequest request)
阅读全文
摘要:Controller /** * 文件上传 */ @PostMapping(value = "/uploadFile") @ResponseBody public HttpResult uploadFile(@RequestParam("file") MultipartFile multipartF
阅读全文
摘要:demo @Override public String meetPublicity(HttpServletRequest request, Long meetId) throws SocketException { String day = new SimpleDateFormat("yyyy_M
阅读全文
摘要:@Service @EnableScheduling //注解开启定时任务功能 public class ChkBillServiceImpl extends ServiceImpl<ChkBillMapper, ChkBill> implements ChkBillService { @Sched
阅读全文
摘要:@EnableScheduling // 1.开启定时任务 @EnableAsync // 2.开启多线程 @Service public class ChkMeetServiceImpl extends ServiceImpl<ChkMeetMapper, ChkMeet> implements
阅读全文
摘要:配置类 package cn.edu.qfnu.soft.common.config; import org.springframework.context.annotation.Configuration; import org.springframework.web.servlet.config
阅读全文
摘要:@PostMapping("/saveAndSubmitBill") public HttpResult saveAndSubmitBill(HttpServletRequest request, @RequestParam("file") MultipartFile[] images, @Requ
阅读全文