From b8b5129ae335c65b1407bbacb5a60441c23abf68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=96=87=E6=B0=B8=E8=BE=BE?= Date: Mon, 27 Mar 2023 18:11:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/_posts/Intellij Platform.md | 6 ++++++ source/_posts/Java.md | 29 +++++++++++++++++++++++------ source/_posts/日志记录.md | 5 ----- 3 files changed, 29 insertions(+), 11 deletions(-) delete mode 100644 source/_posts/日志记录.md diff --git a/source/_posts/Intellij Platform.md b/source/_posts/Intellij Platform.md index 8eb369a..0cf0382 100644 --- a/source/_posts/Intellij Platform.md +++ b/source/_posts/Intellij Platform.md @@ -27,6 +27,12 @@ pom.xml引入依赖 ![image-20230323102621741](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230323102621741.png) +## 使用@Autowired注解报红的解决办法 + +打开Settings -> Editor -> Inspections -> Spring -> Spring Core -> Code,找到Incorrect autowiring in Spring bean components,将代码审查级别从Error修改为Warning + +![image-20230309133646128](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230309133646128.png) + # JetBrains Rider ## 安装CodeGlance Pro后关闭原有的在滚动条悬停时显示代码 diff --git a/source/_posts/Java.md b/source/_posts/Java.md index edce9c2..4136fab 100644 --- a/source/_posts/Java.md +++ b/source/_posts/Java.md @@ -2,17 +2,34 @@ --- -# Java +# Spring Boot -## Intellij IDEA 使用及配置 +## Hikari数据库连接池 -### 使用@Autowired注解报红的解决办法 +### 配置 -打开Settings -> Editor -> Inspections -> Spring -> Spring Core -> Code,找到Incorrect autowiring in Spring bean components,将代码审查级别从Error修改为Warning +```yaml +spring: + datasource: + url: jdbc:mysql://127.0.0.1:3306/yami_shops?allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=UTF-8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true + username: root + password: root + driver-class-name: com.mysql.cj.jdbc.Driver + type: com.zaxxer.hikari.HikariDataSource + hikari: + minimum-idle: 0 + maximum-pool-size: 20 + idle-timeout: 10000 + connection-test-query: select 1 +``` -![image-20230309133646128](https://markdownhexo.oss-cn-hangzhou.aliyuncs.com/img/image-20230309133646128.png) +## logback日志框架 -## 开源框架若依 RuoYi +### 配置 + +## + +# 开源框架若依 RuoYi ### 替换Mybatis为Mybatis-Plus diff --git a/source/_posts/日志记录.md b/source/_posts/日志记录.md deleted file mode 100644 index dcd47d3..0000000 --- a/source/_posts/日志记录.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -title: 设计模式 -date: 2023-01-03 10:11:47 -author: 文永达 ---- \ No newline at end of file