You can try below approaches:
Mention table name using @Table(name="") in your Department entity.
In the Department entity, use @Column annotation for each field, normally spring picks automatically but specifying would be better.
Instead of Department Entity in the @RequestBody you can use DTO as a best practice.(optional)