You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There might be a good reason, but using a custom extension may make your development difficult.
I would recommend using the default extension (i.e. .xml) if that's possible.
Even MyBatis itself does not support custom extension, I think.
Anyway, if you really have to use .sqlx, try the following steps:
From 'Eclipse' menu, open 'Preferences...'.
In the left navigation area, choose 'General' > 'Content Types'.
In the 'Content types' list, choose 'Text' > 'XML' > 'MyBatis XML Mapper'.
Click 'Add...' button on the right side of 'File associations' list.
Enter '*.sqlx' and press 'OK' to close the 'Define New Content Type Association' dialog.
Click 'Apply and Close' button to close 'Preferences' dialog.
Re-open the .sqlx file if it is already open.
I just tested and it seems to be working mostly.
Note that there is an open issue #106 which prevents MyBatipse from function properly in the latest version of Eclipse (2020-06).
Thanks for your kindness. ^^ But, It doesn't work.
When I re-opend .sqlx file, It works with XML editor.
But I clicked with Ctrl+mouse on service java file which is mapper method
It doesn't be shown 'Open in' menu.
Can you test it ? Help me more,.......please~~~
We use mybatis. but sql file extension is not XML.
We use extension SQLX like a test.sqlx. but Content type is XML file.
Can We use mybatipse plug-in ?
Do I have to setting something on Eclipse?
The text was updated successfully, but these errors were encountered: