Skip to content

Spring boot Actuator conflicts with shiro #16097

@C644753271

Description

@C644753271

When i use Spring Boot with shiro , Spring Boot Actuator doesnt publish jvm metric。

I use Spring Boot with Shiro , but i starting Application and navigating to /actuator/metrics displays a list of available meter names:

names: [
"jdbc.connections.active",
"jdbc.connections.max",
"jdbc.connections.min",
"cache.removals",
"hikaricp.connections.idle",
"hikaricp.connections.pending",
"hikaricp.connections",
"hikaricp.connections.active",
"hikaricp.connections.creation",
"cache.puts",
"cache.evictions",
"hikaricp.connections.max",
"hikaricp.connections.min",
"cache.gets",
"hikaricp.connections.usage",
"hikaricp.connections.timeout",
"hikaricp.connections.acquire"
]

Just 17 items!!!

Then , i shield shiro config :

// @Configuration

I starting Application again and i get all.

I want to use both Actuator and Shiro. Thanks for any helps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions