Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

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

$
0
0

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

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>