javax annotation

issue:
2013-12-06 10:08:33 [org.springframework.web.context.ContextLoader]-[ERROR] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationAction' defined in file [D:\projects\fvp\dev\workspace\MFVP\target\classes\com\aiait\fvp\action\member\AuthenticationAction.class]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.aiait.fvp.action.member.AuthenticationAction]: Constructor threw exception; nested exception is java.lang.Error: Unresolved compilation problems:
The import javax.annotation cannot be resolved
Resource cannot be resolved to a type
Resource cannot be resolved to a type

solution:
<dependency>
     <groupId>javax.annotation</groupId>
     <artifactId>jsr250-api</artifactId>
     <version>1.0</version>
     <scope>runtime</scope>
     </dependency>

猜你喜欢

转载自kcai678.iteye.com/blog/1986039