diff --git a/grails-app/conf/application.groovy b/grails-app/conf/application.groovy deleted file mode 100644 index bacca45..0000000 --- a/grails-app/conf/application.groovy +++ /dev/null @@ -1,130 +0,0 @@ -grails { - profile = 'web' - codegen { - defaultPackage = 'grails.plugins.csv' - } -} - -info { - app { - name = '@info.app.name@' - version = '@info.app.version@' - grailsVersion = '@info.app.grailsVersion@' - } -} - -spring { - groovy { - template['check-template-location'] = false - } -} - -hibernate { - naming_strategy = 'org.hibernate.cfg.DefaultNamingStrategy' - cache { - queries = false - } -} - -grails { - mime { - disable { - accept { - header { - userAgents = ['Gecko', 'WebKit', 'Presto', 'Trident'] - } - } - } - - types { - all = '*/*' - atom = 'application/atom+xml' - css = 'text/css' - csv = 'text/csv' - form = 'application/x-www-form-urlencoded' - html = ['text/html', 'application/xhtml+xml'] - js = 'text/javascript' - json = ['application/json', 'text/json'] - multipartForm = 'multipart/form-data' - rss = 'application/rss+xml' - text = 'text/plain' - hal = ['application/hal+json', 'application/hal+xml'] - xml = ['text/xml', 'application/xml'] - } - } - urlmapping { - cache { - maxsize = 1000 - } - } - controllers { - defaultScope = 'request' - } - converters { - encoding = 'UTF-8' - } - views { - 'default' { codec = 'html' }//THIS WAS THE SOURCE OF ERROR - gsp { - encoding = 'UTF-8' - htmlcodec = 'xml' - codecs { - expression = 'html' - scriptlets = 'html' - taglib = 'none' - staticparts = 'none' - } - } - } -} - -dataSource { - pooled = true - jmxExport = true - driverClassName = "org.h2.Driver" - username = "sa" - password = "" -} - - -// environment specific settings -environments { - development { - dataSource { - dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', '' - url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE" - } - } - test { - dataSource { - dbCreate = "update" - url = "jdbc:h2:mem:testDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE" - } - } - production { - dataSource { - dbCreate = "update" - url = "jdbc:h2:prodDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE" - properties { - // See http://grails.org/doc/latest/guide/conf.html#dataSource for documentation - jmxEnabled = true - initialSize = 5 - maxActive = 50 - minIdle = 5 - maxIdle = 25 - maxWait = 10000 - maxAge = 10 * 60000 - timeBetweenEvictionRunsMillis = 5000 - minEvictableIdleTimeMillis = 60000 - validationQuery = "SELECT 1" - validationQueryTimeout = 3 - validationInterval = 15000 - testOnBorrow = true - testWhileIdle = true - testOnReturn = false - jdbcInterceptors = "ConnectionState" - defaultTransactionIsolation = java.sql.Connection.TRANSACTION_READ_COMMITTED - } - } - } -} diff --git a/grails-app/conf/application.yml b/grails-app/conf/application.yml new file mode 100644 index 0000000..1e2aabe --- /dev/null +++ b/grails-app/conf/application.yml @@ -0,0 +1,9 @@ +grails: + profile: web-plugin + codegen: + defaultPackage: 'grails.plugins.csv' +info: + app: + name: '@info.app.name@' + version: '@info.app.version@' + grailsVersion: '@info.app.grailsVersion@'