开车太快,跟不上。为什么要用toString()方法?重写后直接返回object就可以了,不用toString() 方法都会自动返回重写后的toString() 内容,使用toString()不是多此一举?
2019-08-21
在Girl添加
@NotNull(message = "金额必传")
private Double money;
public Double getMoney() {
return money;
}
public void setMoney(Double money) {
this.money = money;
}
@NotNull(message = "金额必传")
private Double money;
public Double getMoney() {
return money;
}
public void setMoney(Double money) {
this.money = money;
}
2019-08-16
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project girl: There are test failures.
[ERROR]
[ERROR] Please refer to D:\code\SpingBoot\girl\target\surefire-reports for the individual test results.
报这个错误的,网上说要pom里面skip掉,后测试mvn打包刺配就看不到了。。苦恼
[ERROR]
[ERROR] Please refer to D:\code\SpingBoot\girl\target\surefire-reports for the individual test results.
报这个错误的,网上说要pom里面skip掉,后测试mvn打包刺配就看不到了。。苦恼