This file contains 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
-Dlogging.level.org.springframework.web=TRACE -Dspring.http.log-request-details=true |
This file contains 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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/trusty64" | |
config.vm.network "private_network", ip: "192.168.32.10" | |
config.vm.synced_folder "docker", "/home/vagrant/docker" | |
config.vm.provider "virtualbox" do |vb| | |
vb.memory = "1536" | |
end | |
config.vm.provision "docker" | |
config.vm.provision "shell", inline: <<-SHELL | |
docker --version |
This file contains 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 com.myimmo; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.boot.builder.SpringApplicationBuilder; | |
import org.springframework.boot.context.web.SpringBootServletInitializer; | |
import com.myimmo.config.Constants; | |
/** | |
* This is a helper Java class that provides an alternative to creating a web.xml. |
This file contains 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
<profiles> | |
<profile> | |
<id>prod</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupid>com.github.trecloux</groupid> | |
<artifactid>yeoman-maven-plugin</artifactid> | |
<version>0.4</version> |
This file contains 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.demo.filter; | |
import org.springframework.context.annotation.Profile; | |
import org.springframework.stereotype.Component; | |
import javax.servlet.*; | |
import javax.servlet.http.HttpServletResponse; | |
import java.io.IOException; | |
@Component |
This file contains 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
<resources> | |
<resource> | |
<directory>${project.basedir}/src/main/resources</directory> | |
</resource> | |
<resource> | |
<directory>${project.basedir}/yo/dist</directory> | |
</resource> | |
</resources> |
This file contains 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
<profiles> | |
<profile> | |
<id>dev</id> | |
<activation> | |
<activeByDefault>true</activeByDefault> | |
</activation> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.springframework.boot</groupId> |
This file contains 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
<plugin> | |
<artifactId>maven-war-plugin</artifactId> | |
<version>2.3</version> | |
<configuration> | |
<webResources> | |
<resource> | |
<directory>yo/dist/public</directory> | |
</resource> | |
</webResources> | |
</configuration> |
This file contains 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
<profiles> | |
<profile> | |
<id>prod</id> | |
<build> | |
<resources> | |
<resource> | |
<directory>${project.basedir}/src/main/resources</directory> | |
</resource> | |
<resource> |
This file contains 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
<plugin> | |
<groupid>com.github.trecloux</groupid> | |
<artifactid>yeoman-maven-plugin</artifactid> | |
<version>0.4</version> | |
<executions> | |
<execution> | |
<id>run-frontend-build</id> | |
<phase>generate-resources</phase> | |
<goals> | |
<goal>build</goal> |
NewerOlder