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争论中并没有提到它。这就是问题产生的原因。