xml mappers does not include into Springboot jar file.

8 views
Skip to first unread message

Andrey Rogov

unread,
Jan 4, 2020, 11:24:14 AM1/4/20
to mybati...@googlegroups.com
Happy New Year myBatis group !

I created springboot project and generated jar file using maven.
Xml mappers does not included into the jar file.
Is there an option or annotation for including xml files to jar ?

regards,
my best wishes !

Andrey

Iwao AVE!

unread,
Jan 5, 2020, 6:41:57 AM1/5/20
to mybatis-user
Hello Andrey,

XML mappers will be included into the jar if they are in the 'src/main/resources' directory.
If they are in a different directory (e.g. src/main/java), you may need to edit the pom.xml.

Regards,
Iwao


--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAAJ_J17CFbZY3pjstUtJ_w1VEchSydtgWewec6U24sFwjDsPjQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages