Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据源页面:(*) property for user to setup #1802

Open
x113773 opened this issue Jun 29, 2017 · 10 comments
Open

数据源页面:(*) property for user to setup #1802

x113773 opened this issue Jun 29, 2017 · 10 comments
Labels

Comments

@x113773
Copy link

x113773 commented Jun 29, 2017

启动项目直接访问数据源页面是这样的,只显示(*) property for user to setup:
qq 20170629102037
执行一个sql语句后,再查看数据源页面就正常了
qq 20170629093548

第一次用druid,这样是正常的吗?

@wlq1005
Copy link

wlq1005 commented Jun 29, 2017

我也遇到了同样的问题

@qq592304796
Copy link

这个是bug?我以为是正常的。。。

@lihengming
Copy link
Contributor

lihengming commented Jun 30, 2017

应该没事,不影响使用。我看了下源码,那个DIV是写死的,一直存在的。

@lihengming
Copy link
Contributor

lihengming commented Jul 5, 2017

@x113773 @wlq1005 @wenshao 这不是BUG,因为Spring Boot在启动时并不会初始化数据源,在真正使用数据源的时候才会初始化它,可以通过日志来观察。

com.alibaba.druid.pool.DruidDataSource   : {dataSource-1} inited

@xiaozhaoosc
Copy link

@bean更改为 @bean(destroyMethod = "close", initMethod = "init") 就可以了

@beinimaliesi
Copy link

我以为是我的错,现在在springboot下是不是都用druid-spring-boot-starter了这种方式了?

@songlongkuan
Copy link

songlongkuan commented Sep 28, 2018

    <dependency>
        <groupId>com.alibaba</groupId>
        <artifactId>druid-spring-boot-starter</artifactId>
        <version>1.1.10</version>
    </dependency>

SpringBoot 2.0.1.RELEASE
我也遇到这个问题了

@diaodiaofly
Copy link

8888
1.1.10版本 增加了init 和close启动报错 去掉就正常...

@BiuBangBoom
Copy link

BiuBangBoom commented May 6, 2019

如果配置了Spring Security。
需要让security的csrf校验忽略Druid的请求。

http.csrf().ignoringAntMatchers("/druid/**")

@asker124143222
Copy link

这个问题还有一种情况可能引起,就是检查是否设置了Content-Security-Policy响应头,这个响应头可以在应用内或者nginx等地方配置。druid监控页面中DataSourceStat List页需要放开script-src 'unsafe-inline' 'unsafe-eval'安全策略。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests