Skip to content

The '$' character in the application.properties parameter name is forcibly deleted #23238

Closed
@octoape

Description

@octoape

Problem

I'll do it again application.properties Is configured in spring.datasource.hikari.data-source-properties.v$session.program=myapp, but the final property key is vsession.program.

spring.datasource.hikari.data-source-properties is a java.util.Properties, v$session.program As a property key is completely legal, so I think it is a bug.

Finally, I use the following configuration to get the correct property key

spring.datasource.hikari.data-source-properties[v$session.program]=myapp

But only problem is that the spring boot language server prompts an error as follows

Can't use '[..]' navigation for property 'spring.datasource.hikari.data-source-properties' of type java.util.Properties

Environment

  • Spring Boot: 2.2.8.RELEASE
  • Oracle JDK: 1.8.0_192
  • Eclipse: 2020-06 (4.16.0)
  • Spring Boot Language Server: 4.7.2.202009020949

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions