You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- **Q:** When writing to Excel, when should I choose the fill mode and when should I choose direct writing?
12
-
- **A:** For complex formatted export content, it is recommended to use template filling; for simple formatted scenarios, direct writing is more efficient.
12
+
- **A:** For complex export content, it is recommended to use template filling; for simple format scenarios, direct writing is more efficient.
13
13
14
14
#### Lombok Annotations
15
15
- **Q:** What is the role of Lombok annotations in using FastExcel?
16
16
- **A:** Commonly used Lombok annotations in entity classes such as `@Getter`, `@Setter`, `@EqualsAndHashCode` are used to automatically generate getter, setter methods, equals, and hashCode methods. If you do not want to use these auto-generated methods, you can implement them yourself.
17
17
18
18
#### Field Matching
19
19
- **Q:** How to solve the problem of some fields not being read or written correctly?
20
-
- **A:** Ensure that the entity class fields follow the camel case naming convention, avoid using `@Accessors(chain = true)`, and recommend using `@Builder` instead. Also, ensure that the entity class uses the `@ExcelProperty` annotation to mark the fields involved in reading and writing.
20
+
- **A:** Ensure that the entity class fields follow the camel case naming convention, avoid using `@Accessors(chain = true)`, and recommend using `@Builder` instead. Also, ensure that the entity class uses the `@ExcelProperty` annotation to mark the fields participating in reading and writing.
21
21
22
22
#### Compatibility Issues
23
23
- **Q:** What should I do if I encounter compatibility issues when using FastExcel?
24
-
- **A:** Common compatibility issues include `NoSuchMethodException`, `ClassNotFoundException`, `NoClassDefFoundError`, etc., usually caused by jar conflicts. It is recommended to check and clean up dependencies in the project to ensure that the FastExcel version used is compatible with other libraries in the project.
24
+
- **A:** Common compatibility issues include `NoSuchMethodException`, `ClassNotFoundException`, `NoClassDefFoundError`, etc., usually caused by jar conflicts. It is recommended to check and clean up dependencies in the project to ensure that the version of FastExcel used is compatible with other libraries in the project.
25
25
26
26
#### Online Deployment
27
-
- **Q:** Why are there problems in the online environment when running normally locally?
27
+
- **Q:** Why are there issues in the online environment when it runs fine locally?
28
28
- **A:** In most cases, this is due to the lack of necessary font libraries in the online environment. You can solve this problem by installing font libraries (such as `dejavu-sans-fonts` and `fontconfig`) or enabling memory processing mode.
29
29
30
30
#### Concurrent Reading
31
31
- **Q:** Why shouldn't the Listener be managed by Spring?
32
-
- **A:** Listeners should not be managed by Spring because this would cause the Listener to become a singleton, which may lead to data confusion issues when concurrently reading files. A new Listener instance should be created each time a file is read.
32
+
- **A:** Listeners should not be managed by Spring because this would cause the Listener to become a singleton, which may lead to data confusion when reading files concurrently. A new Listener instance should be created each time a file is read.
33
33
34
34
#### Performance Optimization
35
35
- **Q:** For large files over 10M, what reading strategies does FastExcel provide?
36
36
- **A:** FastExcel supports default large file processing strategies, as well as customizable high-speed modes and optimization settings for high concurrency and super large files.
37
37
38
38
#### Writing and Format Setting
39
39
- **Q:** How to set cell formats?
40
-
- **A:** You can set cell formats by using annotations like `@ContentStyle` on entity class properties, such as numeric formats, date formats, etc.
40
+
- **A:** You can set cell formats by using annotations such as `@ContentStyle` on entity class properties, for example, numeric formats, date formats, etc.
41
41
42
42
#### Export Issues
43
-
- **Q:** How to solve the problem when the exported Excel file cannot be opened or prompts for repair?
44
-
- **A:** This is usually caused by frontend frameworks or backend interceptors modifying the file stream. It is recommended to test local exports first, ensure the correctness of backend logic, and then investigate frontend and network-related issues.
43
+
- **Q:** How to resolve the issue of Excel files exported cannot be opened or prompt for repair?
44
+
- **A:** This is usually caused by frontend frameworks or backend interceptors modifying the file stream. It is recommended to test local exports first, ensure the backend logic is correct, and then investigate frontend and network-related issues.
45
45
46
46
#### Large File Reading Optimization
47
47
- **Q:** How does FastExcel optimize memory usage when reading large files?
48
48
- **A:** FastExcel automatically determines the processing method for large files. For files with shared strings exceeding 5MB, a file storage strategy is used to reduce memory usage. You can enable ultra-fast mode by setting the `readCache` parameter, but this will increase memory consumption.
49
49
50
50
#### Concurrent Processing
51
51
- **Q:** How to efficiently read Excel files in a high-concurrency environment?
52
-
- **A:** In a high-concurrency environment, you can optimize reading performance using `SimpleReadCacheSelector`. By setting parameters like `maxUseMapCacheSize` and `maxCacheActivateBatchCount`, you can control the cache strategy for shared strings, improve hit rate, and reduce file read latency.
52
+
- **A:** In a high-concurrency environment, you can optimize reading performance using `SimpleReadCacheSelector`. By setting the `maxUseMapCacheSize` and `maxCacheActivateBatchCount` parameters, you can control the cache strategy for shared strings, improve hit rates, and reduce file read delays.
53
53
54
54
#### Field Mapping
55
55
- **Q:** How to handle cases where entity class fields do not match Excel column names?
- **Q:** How to resolve dependency conflict issues?
132
-
- **A:** Common dependency conflicts include POI, ehcache, commons-io, etc. It is recommended to check the dependency tree in the project to ensure that the versions used are compatible with FastExcel. You can use the Maven `dependency:tree` command to view the dependency tree.
132
+
- **A:** Common dependency conflicts include POI, ehcache, commons-io, etc. It is recommended to check the dependency tree in the project, ensure that the versions used are compatible with FastExcel. You can use the Maven `dependency:tree` command to view the dependency tree.
133
133
134
134
#### Performance Monitoring
135
135
- **Q:** How to monitor the performance of FastExcel?
0 commit comments