如何在Spring Boot中导入Oracle数据库包?

huangapple go评论81阅读模式
英文:

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.classLocalDate.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.

huangapple
  • 本文由 发表于 2023年7月18日 14:27:01
  • 转载请务必保留本文链接:https://go.coder-hub.com/76710029.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定