我需要在 Spring Boot 应用程序中声明一个资源引用,该应用程序将部署为 war 文件。这是访问数据库所必需的。在传统的 web 应用程序中,它被添加到 web.xml 中。我怎样才能以 Spring Boot 的方式实现这一目标?
谢谢,本杰明
spring jndi datasource spring-boot
datasource ×1
jndi ×1
spring ×1
spring-boot ×1