Cause Analysis:
The parameter passed by the selectByExample() method is wrong, the example type should be passed, not the entity class.
The error code is as follows:
@Override public PlantGrow selectPlantGrow(PlantGrow plantGrow1) { List<PlantGrow> plantGrows = plantGrowMapper.selectByExample(plantGrow1); if (!CollectionUtils.isEmpty(plantGrows)) { return plantGrows.get(0); } return null; }
Solution: Modify to select
.
Read More:
- [Solved] No module named ‘pywt‘ or ModuleNotFoundError: No module named ‘skimage.metrics‘
- [Solved] Win10 Warning: ModuleNotFoundError: No module named ‘win32con‘ and No module named ‘antlr4‘
- The solution of no module named ‘jinja2. Asyncsupport’
- ImportError: No module named google.protobuf.internal
- How to Solve ModuleNotFoundError: No module named ‘_bz2‘
- JMeter JDBC Error: No pool found named: ‘test‘ [How to Solve]
- [Solved] SpringBoot Project Start Error: No bean named ‘org.springframework.context.xxxxx.importRegistry‘ available
- [Solved] Tensorflow-gpu 2.0.0 Run Error: ModuleNotFoundError: No module named ‘tensorflow_core.estimator‘
- [Solved] Docker+uWSGI+Flask Error: ModuleNotFoundError: No module named ‘flask‘
- Error: Unable to build IHost No DbContext named ‘PersistedGrantDbContext‘ was found.
- Solution to java.lang.IllegalArgumentException: Property’dataSource’ is required
- Vue error in render: “typeerror: cannot read property ‘length’ of undefined”
- VUE: Property or method “deleteFun“ is not defined on the instance but referenced during render. [How to Fix]
- [Solved] VUE Use Filters Error: [Vue warn]: Error in render: “TypeError: Cannot read property ‘toFixed’ of undefined”
- [Solved] Error in inherits(x, “theme”): argument “e2” is missing, with no default
- Vue Error in callback for immediate watcher “height”: “TypeError: Cannot read property ‘style’ of
- RuntimeError: Integer division of tensors using div or / is no longer supported, and in a future rel
- [Solved] vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in render: “TypeError: Cannot read property ‘length‘
- [Solved] Cannot synthesize weak property in file using manual reference counting
- [Vue warn]: Error in render: TypeError: Cannot read property ‘xxxx’of undefined