1.URLMappings
配置Grails URL 映射结构
2.codecs
用于注册文本数据加密解密的工具类。
3.controllers
使用底层的Spring MVC组件模型来构建Grails MVC构架
4.core
添加其它插件依赖的方法和bean
5.dataSource
设置Grails JDBC DataSource实例
dataSource {
pooling = true
dbCreate = "update"
url = "jdbc:mysql://localhost/yourDB"
driverClassName = "com.mysql.jdbc.Driver"
username = "yourUser"
password = "yourPassword"
}
dataSource {
jndiName = "java:comp/env/myDataSource"
}
6.domainClass
用于加载grails domain类到Spring中
7.filter
为Grails添加过滤器
class SecurityFilters {
def filters = {
loginCheck(controller:'*', action:'*') {
before = {
if(!session.user && !actionName.equals('login')) {
redirect(action:'login')
return false
}
}
}
}
}
8.hibernate
设置GORM和Grails集成的Hibernate
9.i18n
设置Grails的国际化支持
10.logging
设置Grails支持的Log4j
11.scaffolding
设置Grails通过Scaffolding支持的CRUD
12.services
设置Grails支持的服务
13.servlet
增加Servlet API
14.webflow
设置Grails支持的Spring Webflow
最后欢迎大家访问我的个人网站:1024s