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
@Controller | |
public class HomeController { | |
@RequestMapping("/") | |
public String index() { | |
return "index"; | |
} | |
} |
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
<!-- WebJars --> | |
<dependency> | |
<groupId>org.webjars</groupId> | |
<artifactId>angularjs</artifactId> | |
<version>1.3.8</version> | |
</dependency> | |
<dependency> | |
<groupId>org.webjars</groupId> | |
<artifactId>bootstrap</artifactId> | |
<version>3.3.1</version> |
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
@SpringBootApplication | |
public class Application { | |
private static final int TWO_SECONDS = 2000; | |
public static void main(String[] args) { | |
SpringApplication.run(Application.class, args); | |
} | |
} |
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
FROM drissamri/java:jre8 | |
MAINTAINER Driss Amri | |
ADD target/linkshortener-1.0.0-SNAPSHOT.jar /app/linkshortener.jar | |
EXPOSE 9080 | |
CMD ["java", "-jar", "/app/linkshortener.jar"] |
NewerOlder