gpt4 book ai didi

java - 导入org.springframework.beans.Beanutils无法解析

转载 作者:太空宇宙 更新时间:2023-11-04 12:10:30 24 4
gpt4 key购买 nike

我在我的项目中使用 spring 4.3.3.RELEASE。

根据 Spring documentation

我可以看到 BeanUtils 位于package org.springframework.beans.BeanUtils

现在当我尝试引用

import org.springframework.beans.BeanUtils;

enter image description here enter image description here

我在 Eclipse 中遇到错误

The import org.springframework.beans.Beanutils cannot be resolved

但是当我更改为 spring 4.2.2.RELEASE 时它工作正常吗?

所以我的问题是,既然它存在于 4.3.3 中,为什么它显示为错误。

最佳答案

如果您使用 eclipse 和 maven 进行构建,请使用命令 mvn eclipse:eclipse。

关于java - 导入org.springframework.beans.Beanutils无法解析,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39911080/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com