velocity.properties 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. # Licensed to the Apache Software Foundation (ASF) under one
  2. # or more contributor license agreements. See the NOTICE file
  3. # distributed with this work for additional information
  4. # regarding copyright ownership. The ASF licenses this file
  5. # to you under the Apache License, Version 2.0 (the
  6. # "License"); you may not use this file except in compliance
  7. # with the License. You may obtain a copy of the License at
  8. #
  9. # http://www.apache.org/licenses/LICENSE-2.0
  10. #
  11. # Unless required by applicable law or agreed to in writing,
  12. # software distributed under the License is distributed on an
  13. # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  14. # KIND, either express or implied. See the License for the
  15. # specific language governing permissions and limitations
  16. # under the License.
  17. # ----------------------------------------------------------------------------
  18. # R U N T I M E L O G
  19. # ----------------------------------------------------------------------------
  20. # ----------------------------------------------------------------------------
  21. # default LogChute to use: default: AvalonLogChute, Log4JLogChute, CommonsLogLogChute, ServletLogChute, JdkLogChute
  22. # ----------------------------------------------------------------------------
  23. #runtime.log.logsystem.class = org.apache.velocity.runtime.log.AvalonLogChute,org.apache.velocity.runtime.log.Log4JLogChute,org.apache.velocity.runtime.log.CommonsLogLogChute,org.apache.velocity.runtime.log.ServletLogChute,org.apache.velocity.runtime.log.JdkLogChute
  24. runtime.log.logsystem.class = org.apache.velocity.runtime.log.Log4JLogChute
  25. # ---------------------------------------------------------------------------
  26. # This is the location of the Velocity Runtime log.
  27. # ----------------------------------------------------------------------------
  28. #runtime.log = velocity.log
  29. # ----------------------------------------------------------------------------
  30. # This controls whether invalid references are logged.
  31. # ----------------------------------------------------------------------------
  32. runtime.log.invalid.references = true
  33. # ----------------------------------------------------------------------------
  34. # T E M P L A T E E N C O D I N G
  35. # ----------------------------------------------------------------------------
  36. input.encoding=UTF-8
  37. output.encoding=UTF-8
  38. # ----------------------------------------------------------------------------
  39. # F O R E A C H P R O P E R T I E S
  40. # ----------------------------------------------------------------------------
  41. # These properties control how the counter is accessed in the #foreach
  42. # directive. By default the reference $velocityCount and $velocityHasNext
  43. # will be available in the body of the #foreach directive.
  44. # The default starting value for $velocityCount is 1.
  45. # ----------------------------------------------------------------------------
  46. directive.foreach.counter.name = velocityCount
  47. directive.foreach.counter.initial.value = 1
  48. directive.foreach.maxloops = -1
  49. directive.foreach.iterator.name = velocityHasNext
  50. # ----------------------------------------------------------------------------
  51. # S E T P R O P E R T I E S
  52. # ----------------------------------------------------------------------------
  53. # These properties control the behavior of #set.
  54. # For compatibility, the default behavior is to disallow setting a reference
  55. # to null. This default may be changed in a future version.
  56. # ----------------------------------------------------------------------------
  57. directive.set.null.allowed = false
  58. # ----------------------------------------------------------------------------
  59. # I F P R O P E R T I E S
  60. # ----------------------------------------------------------------------------
  61. # These properties control the behavior of #if
  62. # Default behavior is to check return value of toString() and treat an object
  63. # with toString() that returns null as null. If all objects have toString()
  64. # methods that never return null, this check is unnecessary and can be disabled
  65. # to gain performance. In Velocity 1.5, no such null check was performed.
  66. directive.if.tostring.nullcheck = true
  67. # ----------------------------------------------------------------------------
  68. # I N C L U D E P R O P E R T I E S
  69. # ----------------------------------------------------------------------------
  70. # These are the properties that governed the way #include'd content
  71. # is governed.
  72. # ----------------------------------------------------------------------------
  73. directive.include.output.errormsg.start = <!-- include error :
  74. directive.include.output.errormsg.end = see error log -->
  75. # ----------------------------------------------------------------------------
  76. # P A R S E P R O P E R T I E S
  77. # ----------------------------------------------------------------------------
  78. directive.parse.max.depth = 10
  79. # ----------------------------------------------------------------------------
  80. # T E M P L A T E L O A D E R S
  81. # ----------------------------------------------------------------------------
  82. #
  83. #
  84. # ----------------------------------------------------------------------------
  85. resource.loader = class
  86. class.resource.loader.description = Velocity File Resource Loader
  87. class.resource.loader.class = org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
  88. class.resource.loader.path = .
  89. class.resource.loader.cache = false
  90. class.resource.loader.modificationCheckInterval = 2
  91. file.resource.loader.description = Velocity File Resource Loader
  92. file.resource.loader.class = org.apache.velocity.runtime.resource.loader.FileResourceLoader
  93. file.resource.loader.path = .
  94. file.resource.loader.cache = false
  95. file.resource.loader.modificationCheckInterval = 2
  96. # ----------------------------------------------------------------------------
  97. # VELOCIMACRO PROPERTIES
  98. # ----------------------------------------------------------------------------
  99. # global : name of default global library. It is expected to be in the regular
  100. # template path. You may remove it (either the file or this property) if
  101. # you wish with no harm.
  102. # ----------------------------------------------------------------------------
  103. # velocimacro.library = VM_global_library.vm
  104. velocimacro.permissions.allow.inline = true
  105. velocimacro.permissions.allow.inline.to.replace.global = false
  106. velocimacro.permissions.allow.inline.local.scope = false
  107. velocimacro.context.localscope = false
  108. velocimacro.max.depth = 20
  109. # ----------------------------------------------------------------------------
  110. # VELOCIMACRO STRICT MODE
  111. # ----------------------------------------------------------------------------
  112. # if true, will throw an exception for incorrect number
  113. # of arguments. false by default (for backwards compatibility)
  114. # but this option will eventually be removed and will always
  115. # act as if true
  116. # ----------------------------------------------------------------------------
  117. velocimacro.arguments.strict = false
  118. # ----------------------------------------------------------------------------
  119. # STRICT REFERENCE MODE
  120. # ----------------------------------------------------------------------------
  121. # if true, will throw a MethodInvocationException for references
  122. # that are not defined in the context, or have not been defined
  123. # with a #set directive. This setting will also throw an exception
  124. # if an attempt is made to call a non-existing property on an object
  125. # or if the object is null. When this property is true then property
  126. # 'directive.set.null.allowed' is also set to true.
  127. # ----------------------------------------------------------------------------
  128. runtime.references.strict = false
  129. # ----------------------------------------------------------------------------
  130. # INTERPOLATION
  131. # ----------------------------------------------------------------------------
  132. # turn off and on interpolation of references and directives in string
  133. # literals. ON by default :)
  134. # ----------------------------------------------------------------------------
  135. runtime.interpolate.string.literals = true
  136. # ----------------------------------------------------------------------------
  137. # RESOURCE MANAGEMENT
  138. # ----------------------------------------------------------------------------
  139. # Allows alternative ResourceManager and ResourceCache implementations
  140. # to be plugged in.
  141. # ----------------------------------------------------------------------------
  142. resource.manager.class = org.apache.velocity.runtime.resource.ResourceManagerImpl
  143. resource.manager.cache.class = org.apache.velocity.runtime.resource.ResourceCacheImpl
  144. # ----------------------------------------------------------------------------
  145. # PARSER POOL
  146. # ----------------------------------------------------------------------------
  147. # Selects a custom factory class for the parser pool. Must implement
  148. # ParserPool. parser.pool.size is used by the default implementation
  149. # ParserPoolImpl
  150. # ----------------------------------------------------------------------------
  151. parser.pool.class = org.apache.velocity.runtime.ParserPoolImpl
  152. parser.pool.size = 20
  153. # ----------------------------------------------------------------------------
  154. # EVENT HANDLER
  155. # ----------------------------------------------------------------------------
  156. # Allows alternative event handlers to be plugged in. Note that each
  157. # class property is actually a comma-separated list of classes (which will
  158. # be called in order).
  159. # ----------------------------------------------------------------------------
  160. # eventhandler.referenceinsertion.class =
  161. # eventhandler.nullset.class =
  162. # eventhandler.methodexception.class =
  163. # eventhandler.include.class =
  164. # ----------------------------------------------------------------------------
  165. # EVALUATE
  166. # ----------------------------------------------------------------------------
  167. # Evaluate VTL dynamically in template. Select a class for the Context
  168. # ----------------------------------------------------------------------------
  169. directive.evaluate.context.class = org.apache.velocity.VelocityContext
  170. # ----------------------------------------------------------------------------
  171. # PLUGGABLE INTROSPECTOR
  172. # ----------------------------------------------------------------------------
  173. # Allows alternative introspection and all that can of worms brings.
  174. # ----------------------------------------------------------------------------
  175. runtime.introspector.uberspect = org.apache.velocity.util.introspection.UberspectImpl
  176. # ----------------------------------------------------------------------------
  177. # SECURE INTROSPECTOR
  178. # ----------------------------------------------------------------------------
  179. # If selected, prohibits methods in certain classes and packages from being
  180. # accessed.
  181. # ----------------------------------------------------------------------------
  182. introspector.restrict.packages = java.lang.reflect
  183. # The two most dangerous classes
  184. introspector.restrict.classes = java.lang.Class
  185. introspector.restrict.classes = java.lang.ClassLoader
  186. # Restrict these for extra safety
  187. introspector.restrict.classes = java.lang.Compiler
  188. introspector.restrict.classes = java.lang.InheritableThreadLocal
  189. introspector.restrict.classes = java.lang.Package
  190. introspector.restrict.classes = java.lang.Process
  191. introspector.restrict.classes = java.lang.Runtime
  192. introspector.restrict.classes = java.lang.RuntimePermission
  193. introspector.restrict.classes = java.lang.SecurityManager
  194. introspector.restrict.classes = java.lang.System
  195. introspector.restrict.classes = java.lang.Thread
  196. introspector.restrict.classes = java.lang.ThreadGroup
  197. introspector.restrict.classes = java.lang.ThreadLocal
  198. userdirective=org.jeecgframework.p3.core.directive.AuthFilterTagDirective,org.jeecgframework.p3.core.directive.AuthOperateTagDirective,com.jeecg.core.biz.tag.select.dict.tag.SelectDictTag,com.jeecg.core.biz.tag.select.table.tag.SelectTableTag,com.jeecg.core.biz.tag.select.dict.tag.ShowDictTag