![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
grails
荡漾-
这个作者很懒,什么都没留下…
展开
-
grails 如何读取当前项目下的配置文件
configurationHolder 是grails 中的内置对象这个是可以直接读取配置文件当中的属性值ConfigurationHolder.config.当项目运行过程中,问有需要去读取文件进行一些操作我这里是需要读取证书,去进行加解密ServletContextHolder.getServletContext().getResourceAsStream(“/Key.ke...原创 2018-05-24 14:12:35 · 831 阅读 · 0 评论 -
改变grails运行端口
永久改变grails运行端口号 只需要在buildConfig.groovy 文件中添加如下代码grails.server.port.http=想改变的端口号只需要这样既可。原创 2018-05-24 14:15:48 · 424 阅读 · 0 评论 -
Could not synchronize database state with session org.hibernate.StaleObjectStateException: Row was u
这个异常不是一定出现的,是偶尔https://stackoverflow.com/questions/25428852/ 这是在stackoverflow 上面的大神答,亲测,问题已解决This exception is caused by the followingAnn reads a row Bob reads the the same row Bob updates ...原创 2018-12-14 14:37:12 · 1212 阅读 · 0 评论