Quantcast

mybatis-3.1.0 why i can't get the Service

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

mybatis-3.1.0 why i can't get the Service

tenchong
This post has NOT been accepted by the mailing list yet.
hi dear, help me!
  when i use mybatis-3.1.0, i can't get the service!

  <context:component-scan base-package="com.tenchong.service" />
 
  in the action
  @SpringBean
  private transient TestService testService;

  public String save() throws Exception {
        testEntity = new TestEntity();
        testService.insert(testEntity);
  }
  testService is null.
  can you help me?
Loading...