Skip to content

Tag: spring

Invalid flag -parameters in java 1.7

I have the task to create the spring-boot application using Java 7. So, as usual, I created a template on start.spring.io resource and open him via File -> New -> Project from Existing Sources… When I run with jdk-8, everything works fine, but when I change JDK to version 1.7 (also I change java-v…

How to @Autowired BuildProperties in test?

I am using this annotation to display the build version in my app: With this maven plugin: It works well in the app, but prevent my test to run. Here is the test class config: I add the file src/test/resources/META-INF/build-info.properties But the build still have errors: How can I make this works during tes…