-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from kolorobot/12-spring-boot-2
Updated to Spring Boot 2 - Most of the deps updated - Java 11 as default - Layout and templates files improved / cleaned - Docs improved - Thymeleaf security dialect added - Cleaned up a bit pom.xml Known issues: Selenium config does not work, the test commented out.
- Loading branch information
Showing
16 changed files
with
221 additions
and
327 deletions.
There are no files selected for viewing
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,15 @@ | ||
# | ||
# Development profile with templates and static resources reloading: http://blog.codeleak.pl/2016/12/thymeleaf-reload-templates-and-static-resources.html | ||
# FIXME: Templates and static reloading does not work currently | ||
# | ||
# Path to project | ||
project.base-dir=file:///C:/Projects/github/spring-boot-thymeleaf | ||
|
||
# Path to project (custom property) | ||
project.base-dir=file:///Users/kolorobot/projects/codeleak/spring-boot-thymeleaf | ||
|
||
# Templates reloading during development | ||
spring.thymeleaf.prefix=${project.base-dir}/src/main/resources/templates/ | ||
spring.thymeleaf.cache=false | ||
|
||
# Static resources reloading during development | ||
spring.resources.static-locations=${project.base-dir}/src/main/resources/static/ | ||
spring.resources.cache-period=0 | ||
spring.web.resources.static-locations=${project.base-dir}/src/main/resources/static/ | ||
spring.web.resources.cache.period=0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
spring.thymeleaf.cache=true | ||
security.basic.enabled=false | ||
security.user.name=user | ||
security.user.password=demo | ||
management.security.enabled=${security.basic.enabled} | ||
|
||
spring.security.user.name=user | ||
spring.security.user.password=demo | ||
|
||
management.endpoints.web.exposure.include=* | ||
management.endpoints.web.base-path=/ |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<link href="/webjars/bootstrap/css/bootstrap.min.css" | ||
th:href="@{/webjars/bootstrap/css/bootstrap.min.css}" | ||
rel="stylesheet" media="screen" /> | ||
<link href="/webjars/bootstrap/js/bootstrap.min.js" | ||
th:href="@{/webjars/bootstrap/js/bootstrap.min.js}" | ||
rel="stylesheet" media="screen" /> | ||
<script src="/webjars/jquery/jquery.min.js" | ||
th:src="@{/webjars/jquery/jquery.min.js}"></script> | ||
</head> | ||
|
||
<body> | ||
<div th:fragment="alert (type, message)" class="alert alert-dismissable" th:classappend="'alert-' + ${type}"> | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||
<span th:text="${message}">Test</span> | ||
</div> | ||
<div th:fragment="alert (type, message)" class="alert alert-dismissable" th:classappend="'alert-' + ${type}"> | ||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> | ||
<span th:text="${message}">Test</span> | ||
</div> | ||
</body> | ||
</html> | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,10 @@ | ||
<!DOCTYPE html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<link href="/webjars/bootstrap/css/bootstrap.min.css" | ||
th:href="@{/webjars/bootstrap/css/bootstrap.min.css}" | ||
rel="stylesheet" media="screen" /> | ||
</head> | ||
<body> | ||
<div th:fragment="footer"> | ||
<ul class="social-links"> | ||
<li> | ||
Follow +Kolorobot on <a href="https://plus.google.com/114397026443102745986" rel="publisher" style="text-decoration:none;"><img src="https://ssl.gstatic.com/images/icons/gplus-32.png" style="border:0;width:20px;height:20px;" alt="" /></a> | ||
</li> | ||
<li> | ||
<a href="https://twitter.com/kolorobot" class="twitter-follow-button" data-show-count="false">Follow @kolorobot</a> | ||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> | ||
</li> | ||
<li> | ||
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://blog.codeleak.pl" data-text="Java, Spring and lots of code" data-via="kolorobot">Tweet</a> | ||
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script> | ||
</li> | ||
</ul> | ||
</div> | ||
<div th:fragment="footer"> | ||
<a href="https://blog.codeleak.pl">Check my blog</a> | ||
<a href="https://twitter.com/kolorobot">Follow me on Twitter (@kolorobot)</a> | ||
</div> | ||
</body> | ||
</html> | ||
|
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
Oops, something went wrong.