摘要: 断言 对象、数组、集合 ObjectUtils StringUtils CollectionUtils 文件、资源、IO 流 FileCopyUtils ResourceUtils StreamUtils 反射、AOP ReflectionUtils AopUtils AopContext #断言 阅读全文
posted @ 2022-10-18 14:09 孤独的帅哥 阅读(47) 评论(0) 推荐(0)
摘要: import com.google.common.collect.Lists; import com.google.common.collect.Maps; import org.springframework.cglib.beans.BeanMap; import java.util.List; 阅读全文
posted @ 2022-05-28 16:27 孤独的帅哥 阅读(968) 评论(0) 推荐(0)
摘要: ##maven release plugin配置 参考https://www.cnblogs.com/jiujixin/p/16003321.html 配置好pom。 ##整合maven-invoker使程序去执行mvn命令 1.导包 <dependency> <groupId>org.apache 阅读全文
posted @ 2022-03-15 10:01 孤独的帅哥 阅读(97) 评论(0) 推荐(0)
摘要: ##Maven Release 当我们的项目达到了当前的目标,在经过检测后不需要改变。这时我们就需要将SNAPSHOT版本打包成RELEASE版本。只有这样,使用这个包的用户才能放心的将这个版本的包放入自己的项目中使用。并且,不会担心这个功能包提供的功能会随时发生改变。 maven-release- 阅读全文
posted @ 2022-03-14 11:11 孤独的帅哥 阅读(1073) 评论(0) 推荐(0)
摘要: 由于之前接收了公司题库模块,在编写demo时,给到的数据只有1500+道数据。因而在SQL上没有做太多的优化。直接使用最基本的SQL语句去做处理,当正式题库进入时,题目数量是在200w以上。原先的逻辑已不能使用于当前数据上。因而对程序进行优化。 1、逻辑本身 测试demo原先是直接从数据库从抽取所有 阅读全文
posted @ 2021-12-05 23:15 孤独的帅哥 阅读(125) 评论(0) 推荐(0)
摘要: 一、添加依赖 <!--quartz定时调度依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency> 阅读全文
posted @ 2021-03-16 17:47 孤独的帅哥 阅读(198) 评论(0) 推荐(0)
摘要: mybatis: mapper-locations: classpath:mapper/*Mapper.xml #为实体类包下的所有类注册别名 type-aliases-package: com.zzx.domain #打印mybatis日志 configuration: #org.apache.i 阅读全文
posted @ 2021-03-16 14:23 孤独的帅哥 阅读(3387) 评论(0) 推荐(0)
摘要: 一、验证码类 @WebServlet(urlPatterns = {"/WEB-INF/jsp/authImg.jsp"}) public class AuthImg extends HttpServlet { /** * 验证码难度级别 Simple-数字 Medium-数字和小写字母 Hard- 阅读全文
posted @ 2021-03-10 23:41 孤独的帅哥 阅读(917) 评论(0) 推荐(0)
摘要: 一、导入依赖 <dependency> <groupId>com.mchange</groupId> <artifactId>c3p0</artifactId> <version>0.9.5.5</version> </dependency> <dependency> <groupId>org.my 阅读全文
posted @ 2021-03-10 16:59 孤独的帅哥 阅读(1273) 评论(0) 推荐(0)