环境
<script id="task-details-template" type="text/x-handlebars-template">
<div class="form-group">
<label for="obj-name">Task name</label>
<input type="text" id="obj-name">
</div>
<div class="form-group">
<label for="obj-id">Task ID</label>
<input type="text" id="obj-id">
</div>
</script>
<script id="operator-details-template" type="text/x-handlebars-template">
<div class="form-group">
<label for="obj-name">Operator name</label>
<input type="text" id="obj-name">
</div>
<div class="form-group">
<label for="obj-id">Operator code</label>
<input type="text" id="obj-id">
</div>
<div class="form-group">
<label for="obj-age">Operator age</label>
<input type="text" id="obj-age">
</div>
</script>
</body>
</html>
这是我的original question。
所以,我改变了Grails 2.4.4
PostgreSQL 9.4
JDK 1.7
。
/myApp/target/work/plugins/db-reverse-engineer-4.0.0/scripts/DbReverseEngineer.groovy
我改变了Burt的插件和依赖以及Emmanuel的建议。当我运行mergedConfig.driverClassName = dsConfig.driverClassName ?: 'org.postgresql.Driver'
mergedConfig.password = dsConfig.password ?: ''
mergedConfig.username = dsConfig.username ?: 'postgres'
mergedConfig.url = dsConfig.url ?: "jdbc:postgresql://localhost:5432/myDB"
时,我收到此错误。
grails db-reverse-engineer command
任何人都可以向我解释这些错误意味着什么以及如何修复它们?
我尝试使用Compilation error: startup failed:
Compile error during compilation with javac.
/home/Documents/Grails_Workspace/myApp/target/work/plugins/cache-1.1.8/src/java/grails/plugin/cache/web/GenericResponseWrapper.java:203: error: method does not override or implement a method from a supertype
@Override
^
/home/Documents/Grails_Workspace/myApp/target/work/plugins/cache-1.1.8/src/java/grails/plugin/cache/web/filter/PageFragmentCachingFilter.java:389: error: cannot find symbol
contentType = response.getContentType();
^
symbol: method getContentType()
location: variable response of type HttpServletResponse
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
并遵循Grails 3中的Grails 3.0.12
教程,但我比以往任何时候都迷失了。
提前致谢。
修改
DB reverse engineer
答案 0 :(得分:1)
该错误来自cache插件,而不是反向工程插件。如果您未使用它,请将其从BuildConfig.groovy
答案 1 :(得分:-1)
该错误来自缓存插件,从BuildConfig.groovy中删除它并在依赖项中添加以下内容
compile "net.sf.ehcache:ehcache-core:2.4.6"