This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // grails-app/controllers/demo/SomeController.groovy | |
| package demo | |
| class SomeController { | |
| def someAction(SomeCommand sc) { | |
| } | |
| } | |
| // this class will automatically implement the Validateable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // these are the same... | |
| Closure doWithSpring() {{ -> | |
| // ... | |
| }} | |
| Closure doWithSpring() { | |
| return { -> | |
| // ... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package aopproject | |
| import io.micronaut.http.annotation.Controller | |
| import io.micronaut.http.annotation.Get | |
| import javax.inject.Inject | |
| @Controller('/groovy') | |
| class GroovyHelloController { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package aopproject | |
| import io.micronaut.http.annotation.Controller | |
| import io.micronaut.http.annotation.Get | |
| import javax.inject.Inject | |
| @Controller('/groovy') | |
| class GroovyHelloController { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value' | |
| (Session info: headless chrome=70.0.3538.110) | |
| (Driver info: chromedriver=2.32.498537 (cb2f855cbc7b82e20387eaf9a43f6b99b6105061),platform=Mac OS X 10.14.1 x86_64) (WARNING: The server did not provide any stacktrace information) | |
| Command duration or timeout: 0 milliseconds | |
| Build info: version: '3.6.0', revision: '6fbf3ec767', time: '2017-09-27T15:28:36.4Z' | |
| System info: host: 'Jeffs-MacBook-Pro-4.local', ip: 'fe80:0:0:0:18d0:340a:5c23:c716%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.14.1', java.version: '1.8.0_131' | |
| Driver info: org.openqa.selenium.chrome.ChromeDriver | |
| Capabilities [{mobileEmulationEnabled=false, hasTouchScreen=false, platform=MAC, acceptSslCerts=true, webStorageEnabled=true, browserName=chrome, takesScreenshot=true, javascriptEnabled=true, platformName=MAC, setWindowRect=true, unexpectedAlertBehaviour=, applicationCacheEnabled=false, rotatable=false, networkConnectionEnabled=false, chr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| grails: | |
| gorm: | |
| multiTenancy: | |
| mode: DISCRIMINATOR | |
| tenantResolverClass: org.grails.datastore.mapping.multitenancy.web.SessionTenantResolver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ cat gradle/wrapper/gradle-wrapper.properties | |
| distributionBase=GRADLE_USER_HOME | |
| distributionPath=wrapper/dists | |
| zipStoreBase=GRADLE_USER_HOME | |
| zipStorePath=wrapper/dists | |
| distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ------------------------------------------------------------ | |
| Root project | |
| ------------------------------------------------------------ | |
| agent | |
| No dependencies | |
| annotationProcessor - Annotation processors and their dependencies for source set 'main'. | |
| No dependencies |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Instead of this... | |
| def rest = new RestBuilder() | |
| MultiValueMap<String, String> form = new LinkedMultiValueMap<String, String>() | |
| form.add("UserID", "****") | |
| form.add("Passwor", "******") | |
| form.add("stuID", "*******") | |
| def resp = rest.post("url") { | |
| accept JSONObject, 'application/json' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ~ $ mkdir mfx | |
| ~ $ cd mfx | |
| mfx $ grails create-app --profile base baseapp | |
| | Application created at /Users/jeffbrown/mfx/baseapp | |
| mfx $ | |
| mfx $ grails create-app --profile rest-api restapp | |
| | Application created at /Users/jeffbrown/mfx/restapp | |
| mfx $ | |
| mfx $ diff baseapp/build.gradle restapp/build.gradle |