How do I run sql scripts in yaml docker?

I have automation task where I want to initialise table ,data in Spring . I have made the sql scripts in a single sql file but it's not executing the scripts . I found answer jn stackoverflow but it's not working in java 21 . I want to know how to do it ? I have yml , .sql file in same location . I can do it by cli or in code but I wanted to try it in yaml
4 Replies
JavaBot
JavaBot5d ago
This post has been reserved for your question.
Hey @CJ__47! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Jeho
Jeho5d ago
Hi
dan1st
dan1st5d ago
What happens when doing it with JDK 21? and what is the SO answer suggesting?
JavaBot
JavaBot5d ago
💤 Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one. In case your post is not getting any attention, you can try to use /help ping. Warning: abusing this will result in moderative actions taken against you.

Did you find this page helpful?