This Spring issue was closed with the following excerpts from GitHub
<https://github.com/GoogleCloudPlatform/google-cloud-eclipse/issues/2154>:
People from the future:
Note the problem was resolved, and it amounts to spring controls logging,
the plugin looks for logs. To unblock this, one just needs to prevent Java
util logging being redirected to slf4j. This is addressed in the comments
below.
Origional bug report:
- Cloud Tools for Eclipse Version: 1.2.0.201706082053
- OS: Linux 4.10.0-21-generic
- Java Version: 1.8.0_131
Eclipse doesn't realise when a spring boot application is started.
*Expected result:* eclipse shows the project as started.
*Actual result:* eclipse shows the project as starting. However you can
navigate to endpoints and see the application running correctly. And the
application logs indicate that the server has started.
Replication steps:
Add spring-boot-starter-web as a dependency.
Add a SpringBootServletInitializer
Run/Debug as an appEngine project.
package com.example;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import
org.springframework.boot.autoconfigure.logging.AutoConfigurationReportLoggingInitializer;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
@SpringBootApplication
public class Example extends SpringBootServletInitializer {
public Example() {
System.out.println("hello from example");
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder
application) {
System.out.println("----INIT");
SpringApplicationBuilder result = application.sources(Example.class);
System.out.println("----END INIT");
return application;
}
}
The workaround <https://github.com/henri-tremblay/gaeshade> should be fixed
<https://jira.spring.io/browse/SPR-15600> in Spring 4.3.10
If you are still affected after implementing the workaround, please feel
free to comment on the GitHub links
<https://github.com/spring-projects/spring-boot/issues/9615> maintained by
the Spring experts.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit
https://groups.google.com/d/msgid/google-appengine/5c203343-c374-425e-8f87-4ba155c07106%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.