mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-13 08:16:04 +00:00
perf[storage]: 优化提示日志
This commit is contained in:
1 parent
e5cda868e6
commit
646c83d660
4 files changed
+59
-15
No files matched your search
+24
-13
@@ -16,6 +16,7 @@
|
||||
```
|
||||
|
||||
- git下载代码慢的解决方法|无法下载代码的解决方法
|
||||
|
||||
```
|
||||
使用vpn
|
||||
git config --global http.proxy http://127.0.0.1:10809
|
||||
@@ -41,11 +42,15 @@ git config --global https.proxy https://127.0.0.1:10809
|
||||
|
||||
## 4. idea,mongodb,postman
|
||||
|
||||
## 5. rider安装
|
||||
## 5. 中间件安装
|
||||
|
||||
## 6. unity安装
|
||||
- zookeeper安装,解压过后,直接运行zkServer.md,zookeeper运行需要依赖JAVA_HOME环境变量
|
||||
|
||||
## 7. 办公软件
|
||||
## 6. rider安装
|
||||
|
||||
## 7. unity安装
|
||||
|
||||
## 8. 办公软件
|
||||
|
||||
```
|
||||
Google浏览器
|
||||
@@ -144,29 +149,35 @@ See the License for the specific language governing permissions and limitations
|
||||
|
||||
## 6 使用Idea默认的快捷键设置
|
||||
|
||||
- 使用Cyan Light Theme主题
|
||||
- Keymap->Main menu->Code->Completion->Basic,删除ctrl+空格,设置为ctrl+enter
|
||||
- Run to Cursor,设置为F9
|
||||
- find,设置为ctrl+f
|
||||
- replace,设置为alt+f
|
||||
- eclipse快捷键设置,个人习惯
|
||||
|
||||
```
|
||||
Keymap->Main menu->Code->Completion->Basic,删除ctrl+空格,设置为ctrl+enter
|
||||
Run to Cursor,设置为F9
|
||||
find,设置为ctrl+f
|
||||
replace,设置为alt+f
|
||||
在输入法上右键,将win10的简体繁体切换ctrl+f快捷键键取消
|
||||
```
|
||||
|
||||
### 4.2 服务器插件安装
|
||||
|
||||
- Cyan Light Theme主题插件,个人习惯
|
||||
- zoolytic,zookeeper客户端管理插件,推荐下载
|
||||
- vue.js,vue语法识别,推荐下载
|
||||
- jclasslib,字节码查看工具,推荐下载
|
||||
- Maven Helper,maven依赖查看工具,推荐下载
|
||||
|
||||
- Alibaba Java Coding Guidelines
|
||||
- Alibaba Cloud tool
|
||||
- Power Mode 2
|
||||
- zoolytic
|
||||
- Maven Helper
|
||||
- EasyApi
|
||||
- vue.js
|
||||
- jclasslib
|
||||
|
||||
### 4.3 web插件安装
|
||||
|
||||
- eslint
|
||||

|
||||
|
||||
## 4.4 格式设置
|
||||
## 4.4 格式设置,个人习惯
|
||||
|
||||
- CSS格式设置
|
||||
- SCSS格式设置
|
||||
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
### 第一讲,第二讲
|
||||
|
||||
- 主要就是环境搭建,软件安装,代理设置,git使用
|
||||
- 知识点
|
||||
|
||||
```
|
||||
oracle和openjdk的区别
|
||||
jdk11的优势
|
||||
```
|
||||
|
||||
### 第三讲
|
||||
|
||||
- event原理讲解
|
||||
- 知识点
|
||||
|
||||
```
|
||||
maven本地仓库,maven远程仓库,idea的工程管理
|
||||
spring自定义标签
|
||||
spring生命周期,对应的事件
|
||||
spring自带事件的优先级通过Ordered接口指定
|
||||
javassist字节码增强,asm,cglib,ByteBuddy,了解
|
||||
```
|
||||
|
||||
### 第四讲
|
||||
|
||||
- storage原理讲解
|
||||
|
||||
```
|
||||
通过spring的PathMatchingResourcePatternResolver扫描excel文件位置
|
||||
|
||||
```
|
||||
@@ -141,7 +141,7 @@ public class StorageManager implements IStorageManager {
|
||||
}
|
||||
|
||||
if (!keyClazz.getSimpleName().toLowerCase().contains(idFields[0].getType().getSimpleName().toLowerCase())) {
|
||||
throw new RuntimeException(StringUtils.format("静态类资源[resource:{}]配置注解[id:{}]类型和泛型类型[type:{}]不匹配"
|
||||
throw new RuntimeException(StringUtils.format("注入静态类配置资源[storage:{}]的[key:{}]类型和泛型类型[type:{}]不匹配"
|
||||
, resourceClazz.getSimpleName(), idFields[0].getType().getSimpleName(), keyClazz.getSimpleName()));
|
||||
}
|
||||
|
||||
@@ -222,7 +222,7 @@ public class StorageManager implements IStorageManager {
|
||||
try {
|
||||
resourceList.addAll(Arrays.asList(resourcePatternResolver.getResources(packageSearchPath)));
|
||||
} catch (Exception e) {
|
||||
|
||||
// do nothing
|
||||
}
|
||||
|
||||
// 通配符无法匹配根目录,所以如果找不到,再从根目录查找一遍
|
||||
|
||||
@@ -48,7 +48,9 @@
|
||||
|
||||
<storage:storage id="resourceManager">
|
||||
<storage:scan package="com.zfoo.**.resource"/>
|
||||
<!-- 如果是类路径一classpath开头,如果是其它目录则以file开头-->
|
||||
<storage:resource location="classpath:/excel" suffix="xls"/>
|
||||
<!-- <storage:resource location="file:C:\Users\jaysunxiao\Desktop\excel" suffix="xls"/>-->
|
||||
</storage:storage>
|
||||
|
||||
</beans>
|
||||
Reference in new issue
Block a user