I use Spring Boot. I have created a controller
@RepositoryRestController
@PreAuthorize("hasRole('ROLE_ADMIN')")
@RequestMapping(value = "/admin/users")
public class AdminUserRestController {
@Autowired
private AdminUserRestRepository userRepository;
...
}
which uses a repository
@RepositoryRestResource(collectionResourceRel = "user", path = "user")
public interface AdminUserRestRepository extends PagingAndSortingRepository<User, Long> {
...
}
The application compiles correctly, but an error occurs when calling the address /admin/users
org.thymeleaf.exceptions.TemplateInputException: Error resolving template "admin/users", template might not exist or might not be accessible by any of the configured Template Resolvers
Why I am thrown away by a mistake associated with Template Resolvers
?