slyak / spring-data-jpa-extra

spring data jpa with template dynamic query (eg: freemarker,velocity etc.) like mybatis. The master branch already support springboot2+ spring5+
Apache License 2.0
400 stars 116 forks source link

是否可以过滤fm自带的注解 <#-- --> #24

Open rplees opened 6 years ago

rplees commented 6 years ago

Hi, 在自定义的fm文件里写SQL, 有时候会有加备注的逻辑 . 能否在解析时过滤掉freemarker的注释.

stormning commented 6 years ago

貌似本身就是支持的

在 2018年1月18日,下午3:40,rplees notifications@github.com 写道:

Hi, 在自定义的fm文件里写SQL, 有时候会有加备注的逻辑 . 能否在解析时过滤掉freemarker的注释.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/slyak/spring-data-jpa-extra/issues/24, or mute the thread https://github.com/notifications/unsubscribe-auth/ADzFg2RtYXxpE47exVlWIhRqJZtEnr8Mks5tLvVtgaJpZM4RigZ8.

rplees commented 6 years ago

@stormning 我版本是2.x的, 是行不通的

pengcgithub commented 6 years ago

貌似我看的也是不能过滤掉的