Java – use ‘${spring. Version}’
•
Java
When I use:
<dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring.version}</version> </dependency>
On the console, I receive the following error message:
org. "Dependencies. Dependency. Version" of spring framework: Spring context: jar must be a valid version, but '${spring. Version}'@ Line 40, column 19
Do I have to configure Maven manually? I saw such a bitch, but I didn't explain how to do it correctly advance
Solution
${spring. Version} is a placeholder. You need to configure its actual value block in < Properties >:
<properties> <spring.version>3.0.5.RELEASE</spring.version> </properties>
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码