This file contains 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
/** | |
* http://stackoverflow.com/questions/13459718/could-not-serialize-object-cause-of-hibernateproxy | |
* | |
* in bootstrap: | |
* import hbadapter.HibernateProxyTypeAdapter | |
* | |
* class BootStrap { | |
* | |
* def init = { servletContext -> | |
* |
This file contains 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
#!/bin/sh | |
# daily backup for gradle in gradle project | |
cd C:/x/y/z | |
find . -name "build.gradle" -print0 2>/dev/null | xargs -0 --replace cp -P {} C:/a/b/c/d/gradle-dayily-back |
This file contains 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
<project> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.mycompany.myproject</groupId> | |
<artifactId>my-app</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<name>My App</name> | |
<properties> | |
<org.springframework.version></org.springframework.version> | |
</properties> |
This file contains 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
/** | |
* create Events.Groovy under directory <grails-project>/scripts | |
**/ | |
eventCreateWarStart = {warName, stagingDir -> | |
//def wd = grailsSettings.projectWorkDir | |
println "###eventCreateWarStart [${stagingDir}]" | |
def today = System.currentTimeMillis() | |
def spt_js_dir= "spt_${today}" | |
This file contains 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
1. List[+T] is convariant | |
2. def ::(elem child):List[me] ----> List[child] < List[me) | |
3. def ::[parent >: me](x: parent):List[parent] ----> parent::List[me] returns List[parent] | |
scala> class parent | |
defined class parent | |
scala> class me extends parent | |
defined class me |
NewerOlder