gpt4 book ai didi

java - spring 引用文档中的 C 命名空间部分

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:11:22 26 4
gpt4 key购买 nike

我正在阅读 spring 文档,我无法理解来自 c-namespace section in the reference document 的以下声明

For the rare cases where the constructor argument names are not available (usually if the bytecode was compiled without debugging information), one can use fallback to the argument indexes

我的问题是:

  1. 在什么情况下构造函数参数不可用。
  2. 没有调试信息编译的字节代码是什么意思。可以使用 eclipse 检查吗?

我正在通过网络检查这个,但可以得到任何引用。我找到了 Constructor injection using c:namespace但这并没有解释任何事情

最佳答案

构造函数参数名称仅在使用变量调试信息编译类时可用。使用 javac 时,这是 -g:vars 选项。在 Eclipse 中,这是 Windows > Preferences > Java > Compiler > Add variable attributes to generated class files

关于java - spring 引用文档中的 C 命名空间部分,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27698930/

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