0

My controller My repository My Entity file My Html File Error while running 1/3 Error page cont. 2/3 Error page cont. 3/3

I am a beginner self learning through videos and courses, so please help me with it.

andrewJames
  • 19,570
  • 8
  • 19
  • 51
M R
  • 73
  • 7
  • Please do not use [images of code, data, errors](https://meta.stackoverflow.com/a/285557/12567365) when asking a question. Use the actual text of the code, data. errors instead. Use the appropriate [formatting](https://stackoverflow.com/help/formatting) for clarity. – andrewJames Nov 22 '22 at 14:51
  • You can also read [ask] and browse topics in the [help] for more guidance. – andrewJames Nov 22 '22 at 14:51

1 Answers1

0

Your Employee entity is missing getters so you can't access the private fields. Thymeleaf calls the getters under the hood when you access obj.field ie it is translated into obj.getField(). Solution: add getters to your entity. Example for the name field:

public String getName() {
    return this.name;
}
void void
  • 1,080
  • 3
  • 8