Questions tagged as 'spring-mvc'

1
answer

Spring returning NULL in only one form field

I'm learning Java and am having a problem with a form using Spring. Until I found a similar problem here in the forum but a little different from mine. It is a basic login page, containing only two fields, login and password. The problem is t...
asked by 08.04.2017 / 19:45
0
answers

Saving Dynamic Data in the Same Java Entity

I'm using Spring MVC, thymeleaf and for me with all built routes it did automatic but not working, entity, repository, controller and etc. I have a relationship of N = N of course to shift, from that relationship created the course table to t...
asked by 21.02.2017 / 12:39
0
answers

Use .POST or .DELETE method for request to delete data

I was using .delete but the method is not being recognized from the error in the console at a time.    2017-04-12 09: 51: 34.022 WARN 5836 --- [nio-8080-exec-9] o.s.web.servlet.PageNotFound: Request method 'POST' not supported I'm sending...
asked by 12.04.2017 / 13:56
2
answers

@Autowired annotation error

Good morning. I am studying JPA + Hibernate + Spring MVC and I am a few days with this problem and I can not solve it. I searched the internet and the solutions I saw did not resolve. Thank you. Stack GRAVE: StandardWrapper.Throwable org...
asked by 15.02.2017 / 17:24
2
answers

404 in css file after spring mapping

Good night everyone! I can not access the css of my application in spring, even after mapping resouce, follows codes: @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/reso...
asked by 30.01.2017 / 00:57
1
answer

Thymeleaf - Submit information from inside table

Is it possible to give information submit from within one using thymeleaf? Example: <form method="post" th:action="@{/receive}" th:object="${objeto}" > <input type="text" th:field="*{nome}"/> <table&...
asked by 19.01.2017 / 15:03
1
answer

Spring encoding problem

Good afternoon, folks, I'm working on a project with Spring MVC and Spring Security. But the same, is presenting problem in the encoding of the characters, when I do deploy on an external server, ie, I run out of eclipse, someone already step...
asked by 14.11.2016 / 17:51
0
answers

How to edit an image stored as a BLOB

Using Spring MVC , thymeleaf and mysql , I have an image stored in a database as a BLOB along with other attributes and I can render the image on the screen normally in a list. From the list, I can access a record editing form...
asked by 22.12.2016 / 19:29
1
answer

I can not inject MockMvc into integration test [Spring Boot]

@RunWith(SpringRunner.class) @SpringBootTest public class CustomerRestTest { private static final String BASE_URL = "http://localhost:8080"; @Autowired private MockMvc mockMvc; @Test public void indexTest() { MvcRes...
asked by 19.10.2016 / 16:47
0
answers

Failed to look up JNDI DataSource with name 'jdbc / imobiliariaDB'; nested

When trying to set up a datasource in spring mvc it is giving the following error. Caused by: org.springframework.jdbc.datasource.lookup.DataSourceLookupFailureException: Failed to look up JNDI DataSource with name 'jdbc/imobiliariaDB'; nested...
asked by 07.09.2016 / 22:32