trying to use a sample spring mybatis project. Seem to be missing some config settings

Hello,
I have downloaded the sample from http://mybatis.github.io/spring/sample.html.

  1. I then open the pom.xml and imported it into intellij
  2. I added a spring MVC facet
  3. i added a web facet
  4. i am using intellij 12.1.6

Once done, the autowiring is failing. I am trying to learn this new framework, but it is difficult when i can not get the sample to run

for example all these have an error similar tor::        Could not autowire. No beans of 'LineItemMapper' type found
public class OrderService {

  @Autowired
  private ItemMapper itemMapper;
  @Autowired
  private OrderMapper orderMapper;
  @Autowired
  private SequenceMapper sequenceMapper;
  @Autowired
  private LineItemMapper lineItemMapper;

I am thinking it is something i have setup incorrectly in my project.


I have attatched a zip of this sample including the intellij project file.

Hopefully someone can point me to what i am doing incorrectly

Thanks for any help



Attachment(s):
mybatis-jpetstore-6.0.1-sources.zip

Please sign in to leave a comment.