Se EntityManager é null, revise configuração Spring.Adicione datasource, propriedades JPA e dependência Spring JPA.