79519684

Date: 2025-03-19 09:18:19
Score: 2
Natty:
Report link

@user6845744's answer is the correct one:
"Naming a class like the annotation above is so bad and cause Spring to not recognize it".

This is wrong!

@RestController
public class RestController{ }

This is OK!

@RestController
public class BaseController{ }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @user6845744's
  • Low reputation (1):
Posted by: Lion's