More classes to annotation.

This commit is contained in:
Paulo Gustavo Veiga
2023-11-19 08:05:38 -08:00
parent 8ec7c4edea
commit 50e4a68d28
5 changed files with 5 additions and 21 deletions

View File

@@ -29,7 +29,7 @@ import org.springframework.stereotype.Repository;
import java.util.List;
@Repository
@Repository("labelManager")
public class LabelManagerImpl
implements LabelManager {
@Resource

View File

@@ -34,7 +34,7 @@ import org.springframework.stereotype.Repository;
import java.util.Calendar;
import java.util.List;
@Repository
@Repository("mindmapManager")
public class MindmapManagerImpl
implements MindmapManager {
@Resource

View File

@@ -28,6 +28,7 @@ import org.hibernate.SessionFactory;
import org.hibernate.query.SelectionQuery;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.stereotype.Repository;
@@ -38,9 +39,10 @@ import java.util.concurrent.CopyOnWriteArraySet;
@Repository
public class UserManagerImpl
implements UserManager {
@Resource
@Autowired
private SessionFactory sessionFactory;
@Autowired
private PasswordEncoder passwordEncoder;
public void setEncoder(PasswordEncoder passwordEncoder) {