dropping of meta data tables by spring batch

混江龙づ霸主 提交于 2019-12-11 05:55:41

问题


In Spring Batch , when are meta data tables dropped?

I see drop sql file at - /org/springframework/batch/core/... but not sure if its some trigger from program ( Batch Job itself ) that drops these tables or these tables need to be dropped manually or does it have anything to do with batch admin?


回答1:


I suppose they are never dropped automatically but a manual action is always required (from SB admin) or from your application (as part of your application service layer)




回答2:


The meta data tables are not created automatically nor are they dropped automatically.

You need to do it yourself once. (This can be automated if necessary but need not be.)

Spring boot does provide a facility that automatically will create the tables needed, but that is not part of the native Spring Batch functionality.



来源:https://stackoverflow.com/questions/39073436/dropping-of-meta-data-tables-by-spring-batch

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!