Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 在tomcat上启动应用程序时出现问题_Java_Spring_Eclipse_Tomcat - Fatal编程技术网

Java 在tomcat上启动应用程序时出现问题

Java 在tomcat上启动应用程序时出现问题,java,spring,eclipse,tomcat,Java,Spring,Eclipse,Tomcat,启动应用程序时遇到以下问题。有人能指引吗 Caused by: org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'library' cannot be foun

启动应用程序时遇到以下问题。有人能指引吗

Caused by: org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'library' cannot be found on object of type 'java.util.Properties' - maybe not public or not valid?

现在已经解决了。实际上,我试图读取application-context.xml中名为“library”的属性。但在VM争论中并没有提到它。这就是问题产生的原因


在VM参数中提到了-Dlibrary=“”。这解决了问题。

对其中一个表达式的求值
{…}
失败。您可以提供关于如何配置bean的更多详细信息吗?XML,
@Value
注释?无论如何,完整的堆栈跟踪将有助于查明无效的表达式。它现在已解决。实际上,我试图读取application-context.xml中名为“library”的属性。但在VM争论中并没有提到它。这就是问题产生的原因。