0

用 jndi 和配置文件连接 jdbc 数据库有什么区别?

 2 years ago
source link: https://www.v2ex.com/t/821694
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

V2EX  ›  Java

用 jndi 和配置文件连接 jdbc 数据库有什么区别?

  VKRUSSIA · 12 小时 1 分钟前 via Android · 534 次点击
2 条回复    2021-12-12 23:05:24 +08:00

ikas      11 小时 46 分钟前   1

简单说就是一个是你自己管理,一个是外部(Application 容器)管理..
jndi 是 javaee 中资源命名查找的规范
对应到现在微服务也就是 service 注册发现使用...


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK