上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: 1.创建不同环境下的目录文件 2.设置key值对应关系 3.添加profiles配置 <profiles> <profile> <id>dev</id> <properties> <env>dev</env> </properties> <activation> <activeByDefault>t 阅读全文
posted @ 2020-03-13 17:36 宇枫 阅读(1308) 评论(0) 推荐(0) 编辑
摘要: 1.需要用@xxx@来代替${xxx}2.项目中如properties配置了自定义的key值my.key=hello,可以用maven打包命令 -Dmy.key=hi 来强行覆盖 3.转:Spring Boot使用Maven打包替换资源文件占位符 在Spring Boot开发中,通过Maven构建项 阅读全文
posted @ 2020-03-04 11:18 宇枫 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 默认情况下,MySQL将null算作最小值。 使用:if(isnull(字段名),1,0) 说明:它的意思是将该字段根据是否为null值分成两部分,0相当于null值部分放在最后面,1相当于非null值部分放在前面,在排序的时候,先根据这一属性进行升序排列 select city_code, ins 阅读全文
posted @ 2020-01-06 11:58 宇枫 阅读(1225) 评论(0) 推荐(0) 编辑
摘要: 创建索引时使用的索引方式,有btree和hash两种 CREATE [UNIQUE | FULLTEXT | SPATIAL] INDEX index_name [index_type] ON tbl_name (key_part,...) [index_option] [algorithm_opt 阅读全文
posted @ 2019-12-30 18:14 宇枫 阅读(8526) 评论(0) 推荐(1) 编辑
摘要: 在我们自定义的实现类继承SmartLifecycle 接口。当Spring容器加载所有bean并完成初始化之后,会接着回调实现该接口的类中对应的方法(start()方法)。 import org.springframework.context.SmartLifecycle; import org.s 阅读全文
posted @ 2019-12-26 17:27 宇枫 阅读(644) 评论(0) 推荐(0) 编辑
摘要: 定时任务 private void start() { scheduledExecutorService = Executors.newScheduledThreadPool(1); if( scheduledExecutorService != null){ Integer ddelay = 10 阅读全文
posted @ 2019-12-26 16:37 宇枫 阅读(470) 评论(0) 推荐(0) 编辑
摘要: CREATE PROCEDURE `testOrgan`() BEGIN DROP TABLE IF EXISTS tmp_table; CREATE TEMPORARY TABLE `tmp_table` ( `city_code` varchar(32) DEFAULT NULL COMMENT 阅读全文
posted @ 2019-12-25 16:42 宇枫 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 分布式系统目前已经很少用到mybatis的缓存了,但是仍有一些场景需要用到。 https://www.cnblogs.com/happyflyingpig/p/7739749.html 阅读全文
posted @ 2019-12-20 12:30 宇枫 阅读(178) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/86825136 通过注册表彻底关闭windows defender,打开Windows Powershell管理员权限运行: reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\W 阅读全文
posted @ 2019-12-17 15:41 宇枫 阅读(983) 评论(0) 推荐(0) 编辑
摘要: setx CLASSPATH ".;%%JAVA_HOME%%\lib;%%JAVA_HOME%%\lib\tools.jar" setx PATH ";%%JAVA_HOME%%\bin;%%JAVA_HOME%%\jre\bin" setx JAVA_HOME "C:\Program Files 阅读全文
posted @ 2019-12-16 21:27 宇枫 阅读(596) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页