@EnableSpringConfigured import

Hi i am working with spring mvc project and i want to make this annotated

@EnableSpringConfigured

at the top of one of my classes like

@Configuration
@EnableSpringConfigured  <---- this one gives me troubles
@ComponentScan( basePackages = {"com.abc.dom", "com.abc.repo", "com.abc.auth"})
@EnableJpaRepositories(basePackages="com.abc.repo")
public class ConfigJPA 
{

....

}

      

what maven dependency should i have in my pom.xml to be able to make this import:

import org.springframework.context.annotation.aspectj.EnableSpringConfigured;

      

my spring version 4.0.6.RELEASE

+3


source to share


1 answer


this is how i added the dependency and it worked

 <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aspects</artifactId>
        <version>3.2.0.RELEASE</version>
    </dependency>

      

Reimeus added a link to the page you give artifactId like this



<artifactId>org.springframework.aspects</artifactId>

      

instead how <artifactId>spring-aspects</artifactId>

that's why it didn't work for me but thanks anyway helped me too

+3


source







All Articles