grails

    0热度

    1回答

    我有一个创建,像这样的可选参数条件查询一个Grails服务: List<Car> search(String make = "%", String model = "%", Integer year = null) { def c = Car.createCriteria() return c.list() { if(make) { like("ma

    0热度

    1回答

    我已经休息控制器的Grails 2.5.6项目中,我创建n个异步任务,他们每个人的调用的方法在服务这样的: // MyController ... def statuses = ['where', 'ownership', 'store'] def tasks = statuses.collect { st -> task { return myService.invo

    0热度

    1回答

    我正在编写Grails i18n消息。我在messages_he.properties _appNav.apps.show-label-button.title = הצג תוויות 上面的代码给"iw" 在resources.groovy localeChangeInterceptor(ParamsAwareLocaleChangeInterceptor) { paramNam

    3热度

    1回答

    是否有可能以填补在可获取的选项<select>的选项域中的constraints static constraints = { variable(inList: ["value1", "value2", "value3"]) }

    0热度

    1回答

    当我意识到无法访问存储在数据库中的值时,我正在使用多个异步GORM调用编写Grails 3.3中的集成测试。我写了下面的测试来了解发生了什么。 void "test something"() { given: def instance = new ExampleDomain(aStringField: "testval").save(flush:true) w

    0热度

    1回答

    所以我想在Grails中创建一个简单的登录页面,并且我的浏览器不断收到重定向错误。我还没有将登录详细信息连接到数据库,并且您应该使用“admin”和“password”登录,但无论我输入的用户名和密码是否正确或不正确,我都会收到“太多的重定向错误”在我的浏览器中。 建议您删除Cookie的操作无效! User.groovy package loginmysql class User {

    0热度

    1回答

    如何瓶坯单元测试这个功能 private void secondaryRepError(def secRepCmd) { def repProfile = springSecurityService?.currentUser?.representativeProfile def productTypes = representativeManagementService.ge

    0热度

    2回答

    我正在尝试在grails中执行SELECT WHERE查询来实现登录页面。我不应该使用PHP或Spring进行数据验证。 user.groovy 包loginmysql class User { String userName String password static constraints = { userName (unique:true)

    2热度

    2回答

    背景 我们的后端目前正在写在Grails的。我们希望将后端更改为NodeJs。我们希望在小迭代中执行更改。我们在AWS上部署所有内容。 问题 如何将技术从Grails的到反复的NodeJS改变? 我的意见 虽然我们不使用微服务架构(和我们没有人有任何经验)我个人:我们的Grails服务器之前 建立一个服务器的NodeJS(如Gateway API也许?) 首先NodeJs只会传递请求/响应/从Gr

    2热度

    1回答

    是否有理由为什么class属性不再在JSON中呈现在grails 3中?我使用的Grails 3.3 例子: Domainclass Class A { String name } 则: A a = new A(name: "test") JSON.use('deep') { render a as JSON } 给我: { a: "test" }