I want the login endpoint to automatically apply the properties from spring.security.user (the built-in properties of Spring Security), so that the login endpoint can have default values, and I don't have to manually enter the username and password every time.
spring:
security:
user:
name: admin
password: password
However, it is recommended to add a property to control whether to automatically apply this, because in production environments the API documentation might be exposed to third parties, and you may want to have a specific switch to avoid exposing the default username and password. This property is recommended to have a default value of false, requiring manual enabling.
I want the login endpoint to automatically apply the properties from
spring.security.user(the built-in properties of Spring Security), so that the login endpoint can have default values, and I don't have to manually enter the username and password every time.However, it is recommended to add a property to control whether to automatically apply this, because in production environments the API documentation might be exposed to third parties, and you may want to have a specific switch to avoid exposing the default username and password. This property is recommended to have a default value of
false, requiring manual enabling.