Skip to content

Commit

Permalink
Enable Spring Boot
Browse files Browse the repository at this point in the history
This commis enable Spring Boot which ends up breaking the flow action -> render phase of Liferay. How?
After the correct processing of an action phase Liferay render a blank page, looks like that it doesn't know
which page it must render even though the parameter "render" is set to "alternative-view". For some
reason Spring Boot break the process without any exception or clue.
  • Loading branch information
tmoreira2020 committed Apr 18, 2016
1 parent a3c15fe commit ac9f543
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication
@Configuration
@EnableAutoConfiguration
public class ApplicationConfiguration {
public class ApplicationConfiguration extends SpringBootServletInitializer {

protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(ApplicationConfiguration.class);
Expand Down
5 changes: 0 additions & 5 deletions src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,4 @@
<url-pattern>/WEB-INF/servlet/view</url-pattern>
</servlet-mapping>

<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
</web-app>

0 comments on commit ac9f543

Please sign in to comment.