Skip to content

Support to configure disable that #{...} is interpreted #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
qshun opened this issue Jan 31, 2019 · 6 comments
Closed

Support to configure disable that #{...} is interpreted #43

qshun opened this issue Jan 31, 2019 · 6 comments
Assignees
Milestone

Comments

@qshun
Copy link

qshun commented Jan 31, 2019

#{...} can be disabled

@kazuki43zoo
Copy link
Member

kazuki43zoo commented May 3, 2019

Hi @qshun ,

Sorry for late reply.
Could you explain about actual problem? If possible, please provide the small reproduce project via GitHub? Do you want to specify the #{...}(MyBatis's standard bind variable) in your SQL query?

@kazuki43zoo kazuki43zoo added the waiting for feedback Waiting for feedback from contributors label May 3, 2019
@kazuki43zoo
Copy link
Member

@qshun

Since 1.2 (not released yet), we support configuration properties for customizing a template engine behavior via #51. Could you resolve this issue using 1.2.0-SNAPSHOT? If there is time, please try it and feedback to us.

@qshun
Copy link
Author

qshun commented May 6, 2019

this issue resolved using 1.2.0-SNAPSHOT

@qshun qshun closed this as completed May 6, 2019
@kazuki43zoo kazuki43zoo removed the waiting for feedback Waiting for feedback from contributors label May 6, 2019
@kazuki43zoo kazuki43zoo added this to the 1.2.0 milestone May 6, 2019
@kazuki43zoo kazuki43zoo self-assigned this May 6, 2019
@kazuki43zoo
Copy link
Member

Fix via #51 .

@qshun
Copy link
Author

qshun commented May 6, 2019

my English is pool,could you disable interpret #{...} by default?

@kazuki43zoo
Copy link
Member

Default behavior does not change. If you want to disable #{...}, please configure FreeMarker setting using configuration property.

  • mybatis-freemarker.properties
freemarker-settings.interpolation_syntax=dollar

@kazuki43zoo kazuki43zoo changed the title While by default #{...} is interpreted, that can be disabled by setting the interpolation_syntax configuration setting (Configuration.setInterpolationSyntax in the Java API) to dollar. Then #{...} will be just static text, and only ${...} will operate as interpolation. Support to configure disable that #{...} is interpreted May 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants