W
W
Wan-Derer2021-12-11 14:39:40
Java
Wan-Derer, 2021-12-11 14:39:40

Spring Boot Security, how to set up Russian login?

In pom.xml add:

<dependency>
     <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-security</artifactId>
</dependency>

In application.properties we write:
spring.security.user.name=Маша
spring.security.user.password=masha

We try to log in, we get "Invalid user credentials".
How to fix?

And in passing: is there an easy way to make a standard login page in Russian? "Invalid user credentials" he writes in Russian, and "Please sign in" in English :) I want monotony or something :)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wan-Derer, 2021-12-11
@Wan-Derer

I solved the problem by transferring the config from application.properties to application.yml. So human encoding :)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question