[英]How to fix org.hibernate.PropertyAccessException: Could not set field value value by reflection setter of
Well-known code works in the console application, but does not work in the boot string. 众所周知的代码在控制台应用程序中有效,但在启动字符串中无效。
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]
https://github.com/Aliaksandr3by/myweb/blob/master/src/main/java/by/smirnova/myweb/entity/ProductName.java https://github.com/Aliaksandr3by/myweb/blob/master/src/main/java/by/smirnova/myweb/entity/ProductName.java
The error was caused by "runtimeClasspath" in "build.gradle" 该错误是由“ build.gradle”中的“ runtimeClasspath”引起的
configurations {
developmentOnly
// runtimeClasspath {
// extendsFrom developmentOnly
// }
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.