HotswapProjects / HotswapAgent

Java unlimited redefinition of classes at runtime.
GNU General Public License v2.0
2.37k stars 493 forks source link

how to use MyBatis plugin #456

Open deokju opened 1 year ago

deokju commented 1 year ago

Hello~ i am very grateful to This Project. Because it increases my development productivity. Help me. I'm going crazy because I'm curious How to use Mybatis plugin. Can you give me a tutorial or how to use it. please please please

my development environment is IntelliJ SpringMvc Java 1.8

aierx commented 1 year ago

me too

skybber commented 1 year ago

MyBatisPlugin should automatically reload your XMLs on any change, doesn't it work? You can also find the basic capabilities in unit test at: https://github.com/HotswapProjects/HotswapAgent/blob/master/plugin/hotswap-agent-mybatis-plugin/src/test/java/org/hotswap/agent/plugin/mybatis/MyBatisPluginTest.java

deokju commented 1 year ago

Don't work. It's serious. Plug-in information is displayed well when the server is started. Need additional settings for Java or XML etc?

image image

Our system setup consists of XML, not Java code Can't I use Mybatis plugins in this case?

Thank you so much for taking the time to answer. I know it's frustrating, but please help me I really want to try it

skybber commented 1 year ago

Try to use the latest 1.4.2-SNAPSHOT (https://github.com/HotswapProjects/HotswapAgent/releases/tag/1.4.2-SNAPSHOT) https://github.com/HotswapProjects/HotswapAgent/releases

deokju commented 1 year ago

hi, my friend. Don't work. Help me. image Is there anything I should do separately in IntelJ after modifying the XML (mybatis mapper)? Thank you so much for your continuous response

sincebyte commented 1 year ago

Not working either

homejim commented 3 months ago

You can use the latest plugin, which has made fixes for MyBatis. Previously, there were errors in some Spring applications that would cause reload failures. @sincebyte @deokju @aierx