Spring Boot
Yet another Java web framework
More on Spring Boot
- Spring Boot: Ajax—Communicating between front-end JavaScript and backend Java using XMLHTTP requests
- Spring Boot: Annotations—The various things starting with @ that are particular to Spring and Spring Boot
- Spring Boot: Command Line—A Command Line program within the Spring Boot framework
- Spring Boot: Configuration—The src/resources/application.yml file, and how to fix 'Could not resolve placeholder ${salt}' type errors
- Spring Boot: Controllers—The component where you map routes to the model and view
- Spring Boot: Example Projects—Links to various Spring Boot Projects of interest
- Spring Boot: Heroku—Running Spring Boot Applications On Heroku
- Spring Boot: HTTPS—Enabling HTTPS
- Spring Boot: Logging—How to handle logging in Spring Boot
- Spring Boot: main—What the main program looks like in a Spring Boot Application
- Spring Boot: OAuth—Social login with Spring Boot
- Spring Boot: Starter Parent—What does the `parent` section in the pom.xml do?
https://spring.io/projects/spring-boot
Getting Started Video Tutorials
- From Zero to Hero with Spring Boot (Brian Clozel of Pivotal) (Dec 14, 2017)
- Code is here: https://github.com/bclozel/issues-dashboard
Books on O’Reilly Safari Library
Accessible from On-Campus IP Addresses, or through UCSB VPN:
Videos
Lots of samples
Custom Error Pages
Making it work on Heroku
You must use this line in the heroku maven task. The part that says -Dserver.port=$PORT
is particularly important.
<web>java -Dserver.port=$PORT $JAVA_OPTS -jar target/${project.artifactId}-${project.version}.jar</web>
Template Engines
Freemarker
Thymeleaf
- https://spring.io/guides/gs/handling-form-submission/
- Code (works): https://github.com/ucsb-cs56-pconrad/spring-boot-thymeleaf-forms
- More complete version of code: https://github.com/spring-guides/gs-handling-form-submission.git
- http://zetcode.com/articles/springbootthymeleaf/
- Code (may not be working yet): https://github.com/pconrad-webapps/spring-boot-thymeleaf-zetcode
Mustache
More on Spring Boot
- Spring Boot: Ajax—Communicating between front-end JavaScript and backend Java using XMLHTTP requests
- Spring Boot: Annotations—The various things starting with @ that are particular to Spring and Spring Boot
- Spring Boot: Command Line—A Command Line program within the Spring Boot framework
- Spring Boot: Configuration—The src/resources/application.yml file, and how to fix 'Could not resolve placeholder ${salt}' type errors
- Spring Boot: Controllers—The component where you map routes to the model and view
- Spring Boot: Example Projects—Links to various Spring Boot Projects of interest
- Spring Boot: Heroku—Running Spring Boot Applications On Heroku
- Spring Boot: HTTPS—Enabling HTTPS
- Spring Boot: Logging—How to handle logging in Spring Boot
- Spring Boot: main—What the main program looks like in a Spring Boot Application
- Spring Boot: OAuth—Social login with Spring Boot
- Spring Boot: Starter Parent—What does the `parent` section in the pom.xml do?