java - 关于Poi,Sheet的问题
巴扎黑
巴扎黑 2017-04-18 10:09:11
0
2
519
巴扎黑
巴扎黑

reply all(2)
巴扎黑

If the three programs are executed in parallel, then each program will save the Excel after modifying it, so only the last saved Excel will be retained.
If the three programs are executed in series, then each program opens Excel first, then selects the sheet, then makes modifications, saves Excel after modification, and the next program is executed in this way again, how can overwriting occur?

左手右手慢动作

If it is a multi-threaded file operation, lock the code that operates excel, read excel first, and then write.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!