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; import java.util.List;
@Repository @Repository("labelManager")
public class LabelManagerImpl public class LabelManagerImpl
implements LabelManager { implements LabelManager {
@Resource @Resource

View File

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

View File

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

View File

@ -27,7 +27,6 @@
/WEB-INF/wisemapping-datasource.xml /WEB-INF/wisemapping-datasource.xml
/WEB-INF/wisemapping-dao.xml /WEB-INF/wisemapping-dao.xml
/WEB-INF/wisemapping-service.xml /WEB-INF/wisemapping-service.xml
/WEB-INF/wisemapping-model.xml
/WEB-INF/wisemapping-servlet.xml /WEB-INF/wisemapping-servlet.xml
</param-value> </param-value>
</context-param> </context-param>

View File

@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<beans>
<bean id="userManager" class="com.wisemapping.dao.UserManagerImpl">
<property name="encoder" ref="passwordEncoder"/>
</bean>
<bean id="mindmapManager" class="com.wisemapping.dao.MindmapManagerImpl"/>
<bean id="labelManager" class="com.wisemapping.dao.LabelManagerImpl"/>
</beans>
</beans>