Refactor beens loading.

This commit is contained in:
Paulo Gustavo Veiga
2023-11-19 15:23:45 -08:00
parent a739bb3e0b
commit 479eb6db2c
15 changed files with 35 additions and 85 deletions

View File

@@ -2,11 +2,11 @@ package com.wisemapping.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.transaction.TransactionManager;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.transaction.interceptor.TransactionAttributeSource;
import org.springframework.transaction.interceptor.TransactionInterceptor;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.ViewResolver;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
@@ -17,7 +17,9 @@ import org.springframework.web.servlet.view.JstlView;
@EnableWebMvc
@Configuration
@EnableTransactionManagement
public class AppConfig {
@ComponentScan
@ImportResource("classpath:spring/wisemapping-common.xml")
public class Application {
@Autowired
TransactionManager txManager;