Questions tagged as 'spring-mvc'

1
answer

Input text (String type) throws java.lang.NumberFormatException when sending aSpring boot

I have the following error in spring boot when sending a form with a text:    org.springframework.beans.TypeMismatchException: Failed to convert   value of type 'java.lang.String' to required type   'com.carrduci.gestionycontrol.model.Model';...
asked by 23.02.2018 / 23:37
0
answers

Bootstrap-Select needs double click to show options

I'm with a page where I have several forms. I'm using bootstrap select (v1.12.14) along with bootstrap 4.0.0 and java backend (with spring MVC). The problem I have is that when I click on a select to show me the available options, you do not...
asked by 21.02.2018 / 15:59
0
answers

REST wrapper for SOAP service with support for HATEOAS

I did a REST wrapper to consume some SOAP services. Now I need to add support for HATEOAS but, for the resources I use the self generated classes with the library maven-jaxb2-plugin . For example, the auto generated class BookDetails...
asked by 20.02.2018 / 13:37
1
answer

Spring maven Webjars loads css bootstrap but not jquery or js

I have the following pom file: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 h...
asked by 15.02.2018 / 19:20
1
answer

Request method 'POST' not supported | SPRING BOOT

I'm trying to mount a simple start menu and I get an error in the POST method when I press the submit button. My controller with the post method called by the submit in html with value "login" My index.html     
asked by 15.02.2018 / 13:28
0
answers

upload a file with dropzone and spring?

Hi, I'm wanting to upload files with dropzone.js and java with spring.I have my js file, I send a json to the controller: CRUD.prototype.guardarObjeto = function() { var array = $("#objeto-form").serializeArray(); form = $("#objeto-...
asked by 25.01.2018 / 17:15
0
answers

How to send emails using spring

I am new using the framework but I would like to know how I can create the classes to send an email using the framework spring, if someone could help me, I would appreciate it. the configuration to my database is in the .ytml file I have done...
asked by 15.12.2017 / 01:25
1
answer

How to perform inner join in spring boot mvc, jpa, hibernet, maven

I run into a problem, the point is that I do not know how to perform a query with inner join My controller is as follows: CONTROLLER @RequestMapping(value="/juan",method = RequestMethod.POST) public String updateProduct(...
asked by 10.11.2017 / 19:13
1
answer

ireknowledge of java build path?

I'm wanting to start a project with Spring, but when I think about it, I get the following errors: and configure the build path manually, indicating the route. What would be another solution?     
asked by 22.11.2017 / 18:48
1
answer

How to return a view dynamically with spring boot?

How can I return a view dynamically by means of a controller in spring boot This is my index.html <html> <head> <title>prueba</title> </head> <body> <div th:replace="${contenido}">...
asked by 06.11.2017 / 18:50