1
+ // locations to search for config files that get merged into the main config
2
+ // config files can either be Java properties files or ConfigSlurper scripts
3
+
4
+ // grails.config.locations = [ "classpath:${appName}-config.properties",
5
+ // "classpath:${appName}-config.groovy",
6
+ // "file:${userHome}/.grails/${appName}-config.properties",
7
+ // "file:${userHome}/.grails/${appName}-config.groovy"]
8
+
9
+ // if(System.properties["${appName}.config.location"]) {
10
+ // grails.config.locations << "file:" + System.properties["${appName}.config.location"]
11
+ // }
12
+ grails. mime. file. extensions = true // enables the parsing of file extensions from URLs into the request format
13
+ grails. mime. use. accept. header = false
14
+ grails. mime. types = [ html : [' text/html' ,' application/xhtml+xml' ],
15
+ xml : [' text/xml' , ' application/xml' ],
16
+ text : ' text-plain' ,
17
+ js : ' text/javascript' ,
18
+ rss : ' application/rss+xml' ,
19
+ atom : ' application/atom+xml' ,
20
+ css : ' text/css' ,
21
+ csv : ' text/csv' ,
22
+ all : ' */*' ,
23
+ json : [' application/json' ,' text/json' ],
24
+ form : ' application/x-www-form-urlencoded' ,
25
+ multipartForm : ' multipart/form-data'
26
+ ]
27
+ // The default codec used to encode data with ${}
28
+ grails. views. default. codec= " none" // none, html, base64
29
+ grails. views. gsp. encoding= " UTF-8"
30
+ grails. converters. encoding= " UTF-8"
31
+
32
+ // enabled native2ascii conversion of i18n properties files
33
+ grails. enable. native2ascii = true
34
+
35
+ // set per-environment serverURL stem for creating absolute links
36
+ environments {
37
+ production {
38
+ grails. serverURL = " http://www.changeme.com"
39
+ }
40
+ }
41
+
42
+ // log4j configuration
43
+ log4j = {
44
+ error ' org.codehaus.groovy.grails.web.servlet' , // controllers
45
+ ' org.codehaus.groovy.grails.web.pages' , // GSP
46
+ ' org.codehaus.groovy.grails.web.sitemesh' , // layouts
47
+ ' org.codehaus.groovy.grails."web.mapping.filter' , // URL mapping
48
+ ' org.codehaus.groovy.grails."web.mapping' , // URL mapping
49
+ ' org.codehaus.groovy.grails.commons' , // core / classloading
50
+ ' org.codehaus.groovy.grails.plugins' , // plugins
51
+ ' org.codehaus.groovy.grails.orm.hibernate' , // hibernate integration
52
+ ' org.springframework' ,
53
+ ' org.hibernate'
54
+
55
+ warn ' org.mortbay.log'
56
+ }
57
+
58
+
59
+
0 commit comments