I'm trying to update my project to Spring Boot 1.4.0.RELEASE and Spring 4.3.2.RELEASE but it fails with a following errors:
The project was not built since its build path is incomplete:
Cannot find the class file for org.springframework.core.io.support.PropertySourceFactory.
Cannot find the class file for org.springframework.core.NestedRuntimeException.
Does Spring Boot 1.4.0.RELEASE support Spring 4.3.2.RELEASE and if so what am I doing wrong and how to fix it ?
See my answer here for someone trying to do the same. You basically have to use dependency management to get your dependencies straight.
Related
I made a package using Spring Boot Initalizer website with the following:
Kotlin
Gradle Kotlin
3.0.2
But I don't have the application properties file in my project. Where can I set the required properties ? Also, there is any documentation available with all of them ?
I tried searching on Google. But mostly are older versions of Spring Boot so that is not relevant
I tried searching on official website but nothing describes what I search.
Generated the spring boot app with same configuration using Spring Initializr.
The 'application.properties' file is present in src > main > resources folder.
Spring Initializr - Kotlin, Gradle
I was trying to make spring boot batch application(2.0.0.RC1) work with Spring cloud starter task(2.0.0.M2).
Getting a range of errors while making Spring cloud starter task work with spring boot 2.x batch application.
I was able to run batch applicationspring-boot-starter-parent(1.5.10.RELEASE) with Spring cloud starter task(2.0.0.M2) successfully.
Here is the screeenshot
But when I tried Spring cloud starter task(2.0.0.M2) with spring boot 2.0.0.RC1, I am getting following error.
com.fasterxml.jackson.databind.exc.InvalidTypeIdException: Could not resolve type id '' into a subtype of [simple type, class java.lang.Object]:
Here is the screenshot of the same.
So I decided to downgrade Spring boot to 2.0.0.M7.Alas I am getting a different exception.
java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext#61f78561 has been closed already.
Why this exceptions happens?Any help/guide would be appreciated.
There have been quite a few upstream changes in Spring Boot, which caused side effects in Spring Cloud Task's 2.0.
We have had a all of them resolved (some in Boot itself) - see here.
We are targeting a 2.0 M3 release this week, so until that is done, perhaps you could try building 2.0 BUILD-SNAPSHOT locally. If you see any other anomaly, please let us know.
I am using Spring Boot version 1.2.4.RELEASE to generate a simple web project. The full Url for creating this project is:
http://start.spring.io/starter.zip?name=demo3&groupId=org.test&artifactId=demo3&version=0.0.1-SNAPSHOT&description=Demo+project+for+Spring+Boot&packageName=demo3&type=maven-project&packaging=jar&javaVersion=1.7&language=java&bootVersion=1.2.4.RELEASE&dependencies=web
The download starter project opened in the STS 3.6.4.RELEASE with tons of errors: Missing artifact, ArtifactDescriptorException from the pom.xml file.
However, if I use version 1.1.12.RELEASE of the Spring Boot, I have no problem to create the startup project.
Is this a bug in the 1.2.4.RELEASE of the Spring Boot? I doubt it.
The project is OK.
Please to check your local env, specially connexion, maven configuration (setting.xml), ...etc
Good luck
I am trying to convert my existing multi-module maven Spring project to Spring Boot project. The reason is make it self contain and follow Martain Fowler's microservices concept.
However, the problem I have encounter is when try to clean build, seems the spring boot is trying to find the Main method from every module, which of course will failed.
Is this feature currently supported by Spring Boot 1.1.6.RELEASE or I did something wrong?
Thanks
It sounds like you've added Spring Boot's Maven plugin to every module in your build – it's what's looking for a main method. You should only add the Spring Boot plugin to a module if its a service that you want to run. If the module's just code that's shared between your services, the Spring Boot plugin isn't needed in that module.
Spring boot has a number of starter dependencies. The default set does not include support for mail (org.springframework.mail is missing in Boot). How do I configure my build.gradle to include the spring framework mail support?
For spring boot you want to use this:
compile("org.springframework.boot:spring-boot-starter-mail")
See more about spring starters here
Try spring-context-support, ie
compile 'org.springframework:spring-context-support'
You might find this a helpful tool for that kind of query: http://www.findjar.com.