This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <module name="org.jboss.as.logging" xmlns="urn:jboss:module:1.3"> | |
| <properties> | |
| <property name="jboss.api" value="private"> | |
| </property> | |
| </properties> | |
| <resources> | |
| <resource-root path="wildfly-logging-8.2.0.Final.jar"> | |
| </resource-root></resources> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.junjun.spring.util; | |
| import org.apache.catalina.Context; | |
| import org.apache.catalina.connector.Connector; | |
| import org.apache.tomcat.util.descriptor.web.SecurityCollection; | |
| import org.apache.tomcat.util.descriptor.web.SecurityConstraint; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| import org.springframework.boot.context.embedded.EmbeddedServletContainerFactory; | |
| import org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainerFactory; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- /etc/httpd/conf.d/elasticbeanstalk.conf --> | |
| <virtualhost> | |
| ... | |
| RewriteEngine On | |
| RewriteCond %{HTTP:X-Forwarded-Proto} !https | |
| RewriteRule !/status https://%{SERVER_NAME}%{REQUEST_URI} [L,R] | |
| </virtualhost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div id="div-msg" width="100%" | |
| style="font-family: Verdana, Geneva, sans-serif; font-size: 30px; text-align: center; padding-top: 100px;"> | |
| ${message}</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.junjun.util.spring.service; | |
| import org.springframework.stereotype.Component; | |
| @Component | |
| public class EchoServiceImpl implements EchoService { | |
| @Override | |
| public String execute(String message) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.junjun.util.spring.service; | |
| public interface EchoService { | |
| String execute(String message); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.junjun.util.spring.controller; | |
| import org.junjun.util.spring.service.EchoService; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.stereotype.Controller; | |
| import org.springframework.ui.Model; | |
| import org.springframework.web.bind.annotation.RequestMapping; | |
| import org.springframework.web.context.request.WebRequest; | |
| @Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.junjun.util.spring.config; | |
| import org.springframework.context.annotation.Bean; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.context.annotation.Configuration; | |
| import org.springframework.web.servlet.ViewResolver; | |
| import org.springframework.web.servlet.config.annotation.EnableWebMvc; | |
| import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; | |
| import org.springframework.web.servlet.view.InternalResourceViewResolver; | |
| import org.springframework.web.servlet.view.JstlView; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.junjun.util.spring.config; | |
| import org.springframework.context.annotation.ComponentScan; | |
| import org.springframework.context.annotation.Configuration; | |
| @Configuration | |
| @ComponentScan(basePackages = { "org.junjun.util.spring.service"}) | |
| public class AppConfig { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package org.junjun.util.spring.server; | |
| import javax.servlet.ServletContext; | |
| import javax.servlet.ServletException; | |
| import javax.servlet.ServletRegistration; | |
| import org.junjun.util.spring.config.AppConfig; | |
| import org.junjun.util.spring.config.WebConfig; | |
| import org.springframework.web.WebApplicationInitializer; | |
| import org.springframework.web.context.ContextLoaderListener; |