I try to use spring-boot with appengine.
For now, I can start spring-boot with mvn spring-boot:run and appengine with mvn appengine:devserver.
But, when I start appengine, I can't get my REST url (404 WARNING: No file found for: /hello)
What did I miss? Can you give me some doc for this ?
Regards
Google App Engine only supports Servlet 2.5. This can be a bit of an issue when using spring boot since that does not officially support Servlet 2.5.
However, there is a Spring Boot Legacy project which can help you deploy spring boot applications on Servlet 2.5. That can be found at https://github.com/scratches/spring-boot-legacy.
There is also an example of using Spring boot in conjunction with GAE, https://github.com/scratches/spring-boot-sample-gae.
Related
I'm trying to update my project Spring Boot version from 2.4.13 to 2.6.12
We were using Spring Cloud 2020.0.0-M6 and I also wanted to bump the version to 2021.0.4
Now my application won't load its remote configuration even though I can see in the logs that it finds the service and the configuration!!
In the above picture you can see my app does find the config-service once deployed to our Development environment.
And after that, it throws me an error because it's trying to use its local configuration where I'm using Environment Variables set from my IDE, using the following syntax ${var}, to replace the value depending on the Run/Debug Configuration.
In the meantime, I'm trying to use Spring Boot 2.6.11 with Spring Cloud 2021.0.4. If I can't get it to work I will have to downgrade it to the last working version until I find the problem.
Any help is appreciated!
Thanks
I setup Camunda in my Spring 3 project (Tomcat server) using this guide. I embedded the workflow engine in my project.
However, I cannot access the cockpit when I go to the url http://localhost:8080/camunda/app/. I get a 404 error.
I see that there is a dependency to be added in case of Spring boot according to this guide
But I see no such dependencies available for Spring. Do we not get access to webapps while integrating Camunda with Spring?
Also asked this question in the camunda form: https://forum.camunda.org/t/integrating-camunda-webapps-in-spring-framework/27661
You'll need the following dependency.
<dependency>
<groupId>org.camunda.bpm.webapp</groupId>
<artifactId>camunda-webapp-webjar</artifactId>
</dependency>
Then ensure you have the required configurations. Refer the spring boot auto configuration set up here and the web app initialiser here.
we have old tomcat application in our project. I like to change it to spring boot for easing my development. but I don't know the way. Will someone helps me out, how to do that
Actually they are two different things.
You can have a Tomcat server with Spring Boot framework.
If you want to get this server setted with Spring Boot, just get a look in this link:
https://www.baeldung.com/spring-boot-configure-tomcat
It maybe a trivial question for experienced web application developers, but for me as a new developer, I cannot understand that why do we need an application container(like Tomcat or Wildfly) when deploying a Spring Boot web application to Openshift, Heroku, or Google App Engine, etc? My understanding is that Spring Boot already contains an embedded container (Tomcat). Can someone explain this to me? Thanks
SpringBoot is Java API that relies on an embedded Java Servlet engine to support the API calls. These dependencies are typically pulled in by Maven as dependencies. So for the end user, it just looks like a FAR JAR with a bunch dependencies included (where one of those dependencies is Embed Tomcat, Jetty or Undertow for example)
More information can be found on the main SpringBoot project page.
Spring Boot 1.3.0 and above is based on Servlet API versions 3.1.x. However I am using a standalone application server which is based on Servlet 3.0.x. Could this cause a problem, such as Spring Boot attempting to call a method which was introduced in Servlet API 3.1.x and getting a NoSuchMethodError or some other type of LinkageError at runtime? Should I be considering downgrading to Spring Boot version 1.1.12, the last version of Spring Boot to be based on Servlet API 3.0.x?
Section 9.1 of the Spring Boot Reference Guide (for Spring Boot 1.4.1.RELEASE) says
You can also deploy Spring Boot applications to any Servlet 3.0+ compatible container.