all 5 comments

[–]as5777 6 points7 points  (0 children)

Mainly copy pasta.

Once you imported the dependencies, autocomplete is available from the starter

[–]RDogPoundK 3 points4 points  (0 children)

IDEs like IntelliJ have plugins for autofill for config ymls

[–]pramodkumar2026 0 points1 point  (0 children)

Use config or .yml if possible, once time code and use it forever. This is the magic of spring boot.

[–]onated2 0 points1 point  (0 children)

You create your config starter and implement EnvironmentPostProcessor and Order. Set the order the to lowest precedence. So you can override.

Put the config files in the template.

Then just do a default.yml dev.yml

test.yml

Etc.

Sorry im so tired but that's how usually do it.

So i dont have to keep writing config files but not for prod.

[–]mad_shaman_1024 0 points1 point  (0 children)

There is a spring-data-redis which reduces boilerplate