Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要帮助,我希望代码读取 csv 文件中的数据并将该数据存储到数据库中。我尝试使用已知行和列读取 csv 文件。但是这里的挑战是我想创建一个实用程序,我不知道 csv 文件中的列数和行数,那么我该怎么做呢?请帮忙。
你探索过Spring Batch吗?LineTokenizer您可以为将要动态更改的列编写自己的实现。
Spring Batch
LineTokenizer