当前位置:   article > 正文

Spring MVC注解报错:Name for argument type [java.lang.String] not available, and parameter name informati_name for argument of type [int] not specified, and

name for argument of type [int] not specified, and parameter name informatio

eclipse运行正常,ant打包时运行却报错。

<!-- 定义任务,编译src文件夹中的java文件,编译后的class文件放到创建的文件夹下。 -->
<!-- 解决ant打包spring参数注入问题 debug="true" encoding="utf-8"-->
<target name="compile" depends="clean">
   <javac srcdir="${basedir}/src" destdir="${basedir}/build" includeantruntime="false" 
       debug="true" encoding="utf-8">
      <classpath refid="project.lib">
      </classpath>
   </javac>
</target>
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9

在编译时增加debug支持:debug=”true”

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/471769
推荐阅读
相关标签
  

闽ICP备14008679号