mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-05-26 20:01:17 +00:00
perf[storage]: 优化了配置表读取功能
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
package com.zfoo.boot;
|
||||
|
||||
import com.zfoo.storage.StorageContext;
|
||||
import com.zfoo.storage.interpreter.ResourceReader;
|
||||
import com.zfoo.storage.manager.StorageManager;
|
||||
import com.zfoo.storage.model.config.StorageConfig;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
@@ -39,8 +40,8 @@ public class StorageAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
@ConditionalOnMissingBean
|
||||
public ExcelResourceReader excelResourceReader() {
|
||||
return new ExcelResourceReader();
|
||||
public ResourceReader excelResourceReader() {
|
||||
return new ResourceReader();
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
{
|
||||
"name" : "StudentResource",
|
||||
"columns" : [
|
||||
{
|
||||
"name" : "id",
|
||||
"type" : "string",
|
||||
"index" : 0
|
||||
},
|
||||
{
|
||||
"name" : "name",
|
||||
"type" : "string",
|
||||
"index" : 1
|
||||
},
|
||||
{
|
||||
"name" : "age",
|
||||
"type" : "int",
|
||||
"index" : 2
|
||||
},
|
||||
{
|
||||
"name" : "score",
|
||||
"type" : "float",
|
||||
"index" : 3
|
||||
},
|
||||
{
|
||||
"name" : "courses",
|
||||
"type" : "array",
|
||||
"index" : 4
|
||||
},
|
||||
{
|
||||
"name" : "users",
|
||||
"type" : "array",
|
||||
"index" : 5
|
||||
},
|
||||
{
|
||||
"name" : "user",
|
||||
"type" : "string",
|
||||
"index" : 6
|
||||
}
|
||||
],
|
||||
"data" : [
|
||||
[
|
||||
"1000",
|
||||
"james0",
|
||||
"10",
|
||||
"60.8",
|
||||
"[\"History\",\"Chiness\"]",
|
||||
"[{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22},{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22}]",
|
||||
"{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22}"
|
||||
],
|
||||
[
|
||||
"1001",
|
||||
"james1",
|
||||
"10",
|
||||
"70.1",
|
||||
"[\"History\",\"Chiness\"]",
|
||||
"[{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22},{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":23}]",
|
||||
"{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22}"
|
||||
],
|
||||
[
|
||||
"1002",
|
||||
"james2",
|
||||
"10",
|
||||
"80.2",
|
||||
"[\"History\",\"Chiness\"]",
|
||||
"[{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22},{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":24}]",
|
||||
"{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22}"
|
||||
],
|
||||
[
|
||||
"1003",
|
||||
"james3",
|
||||
"10",
|
||||
"59",
|
||||
"[\"History\",\"Chiness\"]",
|
||||
"[{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22},{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":25}]",
|
||||
"{\"id\":\"1000\",\"name\":\"SunInsanity\",\"sex\":\"boy\",\"age\":22}"
|
||||
]
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Test",
|
||||
"columns": [
|
||||
"header": [
|
||||
{
|
||||
"name": "Id",
|
||||
"type": "int",
|
||||
|
||||
Reference in New Issue
Block a user