Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

@EnableSpringConfigured import

hi i am working with a spring mvc project and i want to be able to do this annotation

@EnableSpringConfigured

in the top of one of my classes like this

@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 do this import:

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

my spring version is 4.0.6.RELEASE

like image 669
stackUser2000 Avatar asked Sep 09 '14 20:09

stackUser2000


1 Answers

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 the link to the page that you give the artifactId was added like this

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

instead like <artifactId>spring-aspects</artifactId> thats why it dont worked for me, but thanks anyway it helped me too

like image 68
stackUser2000 Avatar answered Sep 24 '22 05:09

stackUser2000