- 博客(7)
- 收藏
- 关注
原创 SQL优化
秒级的SQL查询: 1、建立高效且合适的索引: 2、排查连接资源未显式关闭的情形 3、合并短的请求 4、合理拆分多个表join的SQL,若是超过三个表则禁止join 5、使用临时表 6、应用层优化 7、改用其他数据库 ...
2019-11-22 13:49:03 216
原创 Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled. 2019-11-21 10:33:30.386 ERROR 8096 — [ restartedMain] o.s.b.d.LoggingFailureAnalysisR...
2019-11-21 10:39:39 667
原创 rabbitmq直接模式
@Data @Configuration public class RabbitMQConfig { @Value("${app.rabbitmq.activity.queue:}") private String queueName; @Value("${app.rabbitmq.activity.exchange:}") private String ex...
2019-11-20 10:14:55 103
原创 自定义异常类
@ControllerAdvice public class ExceptionController { @ExceptionHandler(value = {BadRequestException.class, InUseException.class, AlreadyExistsException.class, DataIntegrityViolationEx...
2019-11-20 09:35:33 122
原创 JGIT 常用语法
//创建git仓库 public void createRepository(Auth auth, RepoCreateInput repoCreateInput) throws GitAPIException { // makeSureUserCanReadProject(auth, repoCreateInput.getProjectId()); Repo...
2019-11-19 22:09:08 277
原创 springboot设置像素大小
public static BufferedImage scale(BufferedImage imageToScale, int dWidth, int dHeight) { BufferedImage scaledImage = null; if (imageToScale != null) { scaledImage = new BufferedImage(dWidth, dHeight, ...
2019-11-19 21:42:44 589
原创 Nginx配置cors
Nginx 配置 cors server { listen 8090; server_name localhost; #charset koi8-r; #access_log logs/host.access.log main; root c:\\work\\image-stora...
2019-11-19 21:14:20 203
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人