摘要: 三步上篮 1、导入redis依赖 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifactId> </dependency> 2.编写co 阅读全文
posted @ 2019-11-28 13:36 官萧何 阅读(363) 评论(0) 推荐(0)
摘要: 1.引入元素选择器 2.使用angular钩子全局设置input长度 ngAfterViewChecked() { const input = this.el.nativeElement.querySelectorAll('input'); if (input) { input.forEach(e 阅读全文
posted @ 2019-11-22 17:18 官萧何 阅读(1384) 评论(0) 推荐(0)
摘要: 1.打包springBoot项目为demo.jar 以下贴上项目pom打包配置(使用idea的maven helper插件打包 ) <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4 阅读全文
posted @ 2019-11-21 15:43 官萧何 阅读(6774) 评论(0) 推荐(0)
摘要: 1.打包springBoot项目包放在linux服务器上 2.贴上启动项目的批处理代码 #!/bin/bash export BUILD_ID=dontKillMe pid=`ps -ef | grep /home/rivamed/fw-fhvc/flvcat-hvc-exec-v2.0.0.11. 阅读全文
posted @ 2019-11-20 11:01 官萧何 阅读(1298) 评论(0) 推荐(0)
摘要: 1, 对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2,应尽量避免在 where 子句中对字段进行 null 值判断,创建表时NULL是默认值,但大多数时候应该使用NOT NULL,或者使用一个特殊的值,如0,-1作为默 认值。 3,应尽量 阅读全文
posted @ 2019-11-08 13:29 官萧何 阅读(221) 评论(0) 推荐(0)