英文:
how do i import oracle database packages in spring boot.?
问题
I want to import and use this oracle db package in my spring boot application but I don't know how to do it properly.
如何在Spring应用程序中导入和使用数据库包。
英文:
cus.sMB_PACKAGE.EABAL(new_aseid,to_date('&1','dd-mm-yyyy')-1)
I want to import and use this oracle db package in my spring boot application but I don't know how to do it properly.
how do I import and use database packages in spring application.
答案1
得分: 1
你需要在你的项目中创建@Repository
类。
这是一个有关如何在Spring中实现它的教程,以及如何创建自己的模式来处理LocalDateTime.class
或LocalDate.class
的教程。
之后,你可以创建一些使用你的存储库方法来处理数据的@Service
类。关于如何使用@Service
注解的示例在这里。
然后,你可以使用你的SQL语句创建一个@Procedure
,示例在这里。
希望能帮到你。
英文:
You need to create @Repository
class in your project.
Here is a link with a tutorial how to do it in spring and here is a link with a tutorial to make your own pattern to LocalDateTime.class
or LocalDate.class
.
After that you can make some @Service
classes which are using your repository method to do with your data all you want. Example how to use @Service
annotation is here. Than you can create a @Procedure
with your SQL statement, example is here.
Hope it helps.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论