Questions tagged [Spring] (623)

2
answers

How to show notification with animation without reloading stranicy after submitting the form in Spring Boot?

Prilocaine on Spring Boot + Thymeleaf There is a form. After clicking the button the data is saved in database field , redirect to the same page and a notification appears on the same page that the save completed successfully. Everything works fine, notification appears, but I don't like reboots page and this notice app...
Eugene_V asked April 19th 20 at 12:33
1
answer

Spring MVC validation not working. How to do?

Can't do validation in spring mvc. Two days I and without to no avail. This is my whole project Image IDE Here is my user User package com.springfreemarkerform; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; public class User { @N...
Torey.Toy asked April 19th 20 at 12:17
1
answer

Why do images appear only after you restart Intelij Idea?

Using Spring and Thymeleaf Development environment - intelij Idea Problem: when I add any image in the project folder and launch the app, the image is not displayed. The image appears only after I make presupus Intelij Idea. I'm sick of capity times to restart the IDE after adding a new image) How to fix it? The image i...
daron.Bailey asked April 19th 20 at 12:04
1
answer

Why Spring Security is not working accessDaniedHandler?

Hello, this situation, I want to configure spring security men so that when someone climbed a non-existent page or the pages were redirected to a page - access denied. But the fact is that when I try to do a query on a left path, it redirects me to the login page as if I authentication entered incorrect data! I added to the...
Tiana.Powlowski asked April 19th 20 at 12:02
1
answer

Spring MVC vs Struts vs JSF?

Because of the abundance of different technologies I'm a little confused. Please tell me whether it is appropriate to compare Spring MVC, Struts and JSF together? As I understand it all frontend faworki and roughly interchangeable. If so, is it possible to write a backend for, say, Spring e, and connect frameworks for this ...
adela_King59 asked April 19th 20 at 12:00
1
answer

Why can't I login with spring rest jwt?

Can't log in, although registration is no problem. Was googling and someone wrote that the problem is that password which didn't come keshirovaniya, try ksirova is still not out. Don't understand what the problem is. Crashes and exception error 401 mainly here: authentication = authenticationManager.authenticate( new Usern...
jayson9 asked April 18th 20 at 13:37
1
answer

How to make username for admin in the Spring Security?

The application for Spring Security + Thymeleaf + Postgresql To administer the application just me, then there will be only one role 'ADMIN' If the user wants for example to go to the admin url "localhost:8080/admin/sketches" you need to show a form with a login, in all other URLs, the login form should not appear. Seve...
margot_Beatty63 asked April 18th 20 at 13:37
2
answers

Upload war file to TomCat when trying to access a 404 error?

Hello faced with this problem. A simple application with Springboot, in fact, REST services c index page Two servers one on Windows 10, the second on Cent OS. On both servers TomCat, Java same versions. When you download the war file on Windows, all the rules, the application is loaded on server start issues index.html the ...
Peter_K asked April 18th 20 at 13:31
2
answers

Can't connect spring config-server to postgresql?

Can't connect to server spring config to postgresql. Working with postgresql for the first time. Actually like set up everything correctly. Do everything by the examples, the database connection is checked through the config database in IDEA, before it was launched without reference to the database and rules worked. yml...
Baby28 asked April 18th 20 at 13:24
1
answer

What to do if you can't authenticate spring rest?

It's impossible to accept a post request for user authorization. Googled authorization Srping rest but really is not, as I understand it you need as in the conventional application configure authorization, but still not out. The response from the server, in principle there is when a get request is. @Configuration @EnableWeb...
Murl_Schimm asked April 18th 20 at 13:18