Questions tagged as 'spring-mvc'

3
answers

What is the correct way to pass the paging data in the REST response?

In more robust applications where a table can have millions of records, it is important to implement paging in a REST API. I have seen in some projects two ways to return paging information (page number, page size, sort order, etc.) In the bo...
asked by 12.04.2017 / 19:31
1
answer

Spring Model 4.3.1

I do not know how to work 100% with #POST and #GET yet, my problem should be in understanding how requests occur and when my objects are instantiated. Here are methods: CaixaOperacaoController.java @Controller @RequestMapping("/caixa") public...
asked by 07.08.2018 / 14:37
1
answer

How do I check if my spring application is in the production environment?

When in production, when I fall into an exception, send an email to the support but only in production, in development I do not want it to perform this task.     
asked by 19.08.2015 / 20:55
2
answers

Pass JSP model to SpringMVC controller

Could someone please explain to me how to fix the error of my JSP? This form will serve to register products in my system, it receives a list of product categories from the database. My Controller ProductController.java: import java.util...
asked by 16.09.2014 / 06:36
3
answers

Search / object register via REST url and register with SPRING

I'm new to REST and Spring. I'm doing an exercise where I have to fetch a client via url and return (GET) it in JSON format and insert (POST) a client in JSON format. To search will be in the template below, using GET: http://localhost:8080...
asked by 28.10.2016 / 00:42
1
answer

Is it possible to send all Java Exceptions by email?

I have a Java Web application, using Spring MVC, and would like to email all Exceptions posted to the system. Is it possible to do this? Set up a default email so that it receives all the Exceptions and the stacktrace, so that I can follow th...
asked by 23.06.2016 / 15:41
1
answer

Spring MVC in HTML pages without JSP

1 - Is it possible to use data sent by Spring Controllers in HTML pages (using HTML5 tags), not to use JSP? 2 - If it is not possible, how can I make JSP pages with Spring MVC with minimal Java code intrusion on pages? 3 - Does the Bootstr...
asked by 10.07.2014 / 01:22
1
answer

Binding in Spring MVC not working

Well, I have a problem that has never occurred to me before regarding Spring MVC binding. I have a form as below. The bindind "firstName" and "lastName" tags work fine, but the "logins.email" <f:form class="form-signin" method="post...
asked by 02.09.2014 / 19:04
1
answer

Error returning HashMap for JavaScript

When returning the hashmap to javascript I get the following error:    The resource identified by this request is only capable of generating   responses with characteristics not acceptable according to the request   "accept" headers. Call...
asked by 23.06.2016 / 03:15
2
answers

Page displaying an error

I'm new to spring with java and I have the following controller and jsp Controller: @Controller //mapeamento do nome @RequestMapping("/hello") public class HelloController { //mapeamento do nome @RequestMapping("/controller") p...
asked by 01.01.2019 / 15:29