mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Registrar usuario funcional
This commit is contained in:
parent
2339891ff0
commit
1f6805e89c
2 changed files with 2 additions and 1 deletions
|
@ -7,7 +7,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|||
import org.springframework.cheapy.model.Authorities;
|
||||
import org.springframework.dao.DataAccessException;
|
||||
|
||||
public interface AuthoritiesRepository extends CrudRepository<Authorities, Integer>{
|
||||
public interface AuthoritiesRepository extends CrudRepository<Authorities, String>{
|
||||
|
||||
// @Autowired
|
||||
// void save(Authorities authorities);
|
||||
|
|
|
@ -29,6 +29,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
@Service
|
||||
public class AuthoritiesService {
|
||||
|
||||
@Autowired
|
||||
private AuthoritiesRepository authoritiesRepository;
|
||||
// private UserService userService;
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue