java

java

java – How to send an error message to view

Question: I'm a little lost here, I would like to put a parameter in the view to inform the user that their password is wrong, expired etc. the problem that spring-security identifies. WebSecurityConfigurerAdapter @Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled = true) public class SecurityConfiguration extends WebSecurityConfigurerAdapter { @Autowired private UserDetailsRepository userDetailsRepository; @Override protected …

java – How to send an error message to view Read More »

java – How to handle a String in JSON format?

Question: Let's say I receive the following content that is stored in a String: { “client_id”: 1580, “videos”: 4, “remote_urls”: [{ “url”: “rtsp://aniceurl.com” }, { “url”: “rtsp://aniceurl.com” }, { “url”: “rtsp://aniceurl.com” }, { “url”: “rtsp://aniceurl.com” } ], “action”: “start” } I recognize the JSON and all, but it's saved in …

java – How to handle a String in JSON format? Read More »

java – How to create a filter from the words/phrases of interest to filter a specific vacancy from a "List"?

Question: In my example I have two classes that are SetorInteresse and Vaga , below is the structure of the two: Class SectorInterest: public class SetorInteresse { private List<String> setores; public SetorInteresse(List<String> setores) { this.setores = setores; } public SetorInteresse() { } public void addPalavra(String palavra) { setores.add(palavra); } public …

java – How to create a filter from the words/phrases of interest to filter a specific vacancy from a "List"? Read More »

Scroll to Top
AllEscort