Friday, July 7, 2017

spring: thymeleaf: Neither BindingResult nor plain target object for bean name



>PROBLEM

The request returns the following error message:

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.
Fri Jul 07 17:02:46 BRT 2017
There was an unexpected error (type=Internal Server Error, status=500).
Error during execution of processor 'org.thymeleaf.spring4.processor.attr.SpringInputGeneralFieldAttrProcessor' (login)




>SOLUTION

In this example, it missing the object requested by the html template at:



Check your parameters on the respective method in the controller's class.



Fixing the bug, including the missing parameter:




Problem solved.


>ENV
Java
Spring boot
Thymeleaf
Eclipse

No comments:

Post a Comment

eclipse: java: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" or Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

  >PROBLEM Using Eclipse, you try to run a simple logging test using "org.slf4j.Logger" like the sample below: package Test; im...