The current .gitignore file content is just like below, and you can add this repo as a upstream **
## .gitignore for Grails 1.2 and 1.3
# .gitignore for maven
target/
*.releaseBackup
# web application files
The current .gitignore file content is just like below, and you can add this repo as a upstream **
## .gitignore for Grails 1.2 and 1.3
# .gitignore for maven
target/
*.releaseBackup
# web application files
引入插件
compile ":excel-export:0.2.1"
导出方法
/** * 导出Excel * */
def export(){
class User {
String id = UUID.randomUUID().toString()
static mapping = {
id generator:'assigned'
}
}
@CompileStatic | |
@ActiveProfiles(value = "testing") | |
@ContextConfiguration(loader = SpringBootContextLoader, classes = [InvestmentApplication]) | |
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT) |
export JAVA_HOME=/Library/Internet\ Plug-Ins/JavaAppletPlugin.plugin/Contents/Home/ | |
export PATH=$JAVA_HOME/bin:$PATH |
import com.sun.org.apache.xml.internal.utils.StopParseException | |
import java.lang.reflect.UndeclaredThrowableException | |
class ThirdException extends Exception { | |
public ThirdException(String msg) { | |
super(msg) | |
} |
def list = [] | |
class A { | |
String a | |
} | |
list.add(new A(a: "a")) | |
list.add(new A(a: "b")) | |
list.add(new A(a: null)) | |
list.add(new A()) |
使用xattr -c 文件名 可以去除@ |
@CompileStatic | |
class BeanUtil { | |
static def copyProperties(source, target) { | |
this.copyProperties(source, target, [] as String[]) | |
} | |
static def copyProperties(source, target, String[] ex) { | |
def exludeList = ['class', 'metaClass'] | |
exludeList.addAll(ex) | |
source.properties.each { key, value -> |
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") |