众所周知的代码在控制台应用程序中有效,但在启动字符串中无效。
IllegalArgumentException occurred while calling setter for property
[by.smirnova.myweb.entity.ProductName.id (expected type =
java.lang.Long)]; target =
[by.smirnova.myweb.entity.ProductName@4942fb65], property value = [38]
答案 0 :(得分:0)
该错误是由“ build.gradle”中的“ runtimeClasspath”引起的
configurations {
developmentOnly
// runtimeClasspath {
// extendsFrom developmentOnly
// }
}