摘要: public class InitQuartzJob implements ApplicationListener<ContextRefreshedEvent> { @Override public void onApplicationEvent(ContextRefreshedEvent cont 阅读全文
posted @ 2022-04-26 17:49 90年的小哥哥 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 方法1:顺序传参法 public User selectUser(String name, int deptId); <select id="selectUser" resultMap="UserResultMap"> select * from user where user_name = #{0 阅读全文
posted @ 2022-03-03 14:43 90年的小哥哥 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 参考资料:https://github.com/wck810160078/jiaxin_shop/blob/master/src/main/java/com/jiaxin/shop/utils/ExcelUtil.java 功能描述:下载excel模板时在指定的sheet页初始化相关数据,并下载ex 阅读全文
posted @ 2022-03-02 14:53 90年的小哥哥 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一、调优的两个重要理论 1、木桶原理:性能由系统中的短板处为准,如 硬盘I/O, 网络I/O,CPU。 2、Amdahl定律:尽可能将串行执行部分变为并行执行,提高加速比,串行时间÷并行时间=加速比。 二、调优的几种途径 1、java应用程序 2、系统的运行期 3、设置合理的JVM虚拟机参数 4、优 阅读全文
posted @ 2018-05-10 19:54 90年的小哥哥 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1、二进制转十六进制方法 二进制到16进制转换:http://jingyan.baidu.com/album/47a29f24292608c0142399cb.html?picindex=1 2、encode 和 decode 例子 msg = "我爱北京天安门"print(msg.encode(e 阅读全文
posted @ 2018-01-04 17:39 90年的小哥哥 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1、动态赋值方法 name = input("name:")age = int(input("age:"))print(type(age))job = input("job:")info = ''' info of %s Name: %sAge: %sJob: %s'''%(name, name, 阅读全文
posted @ 2017-12-01 17:11 90年的小哥哥 阅读(168) 评论(0) 推荐(0) 编辑