简体   繁体   English

如何查看用于连接数据库的默认配置

[英]how to look at default configuration used for connecting to DB

Since SpringBoot is opinionated, it connects to my Oracle DB using configuration that I didn't have to do.由于 SpringBoot 固执己见,它使用我不必做的配置连接到我的 Oracle 数据库。 Now, I want to see these config values, how can I do that?现在,我想查看这些配置值,我该怎么做?

I tried the "env" and "info" actuator endpoints, but they didn't have any information on this我尝试了“env”和“info”执行器端点,但他们没有这方面的任何信息

TIA TIA

In your app if you already exposed all actuator endpoints or specific configprops endpoint, you can use "configprops".在您的应用程序中,如果您已经公开了所有执行器端点或特定的 configprops 端点,则可以使用“configprops”。

<host>/actuator/configprops

Other than the jdbc connection url is there any configuration you specificly wanted to see?除了 jdbc 连接 url 之外,您还有什么特别想看的配置吗? perhaps you can try to look at the logging information but it will show a lot more than just configuration values, but if you try to find list of configuration that Spring Boot set here is the reference link也许您可以尝试查看日志记录信息,但它会显示的不仅仅是配置值,但是如果您尝试查找 Spring Boot set here 的配置列表是参考链接

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM