Spring Boot on Scala
Using Spring Boot on Scala Assumption This example uses a project generated/seeded via Activator using the "minimal-scala" template. However, any project using SBT will probably work just as well. Add Spring…
Using Spring Boot on Scala Assumption This example uses a project generated/seeded via Activator using the "minimal-scala" template. However, any project using SBT will probably work just as well. Add Spring…
I cannot believe how little info there is on using multiple Datasources in Spring Boot. Out of the box, Spring Boot makes it very easy to configure the default Datasource: tweak…
Command line program w/ Spring Boot To write a command line program (e.g. launched w/ static void main(String args[])), have the main application class implements org.springframework.boot.CommandLineRunner and implement the function:…
"chmod go+rw ~" breaks SSH Quick note: running chmod go+rw /home/ec2-user could break subsequent attempts to SSH into the EC2 instance. When all the usual suspects regarding SSH identity files,…
A more typical/modern setup would be to replace JSP with one of the template engines and JS and styling libraries: Thymeleaf as the templating engine jQuery as the JavaScript library…
Project Setup From the CLI or http://start.spring.io/, initialize a project with "web" capability. What ends up happening is addition of the dependency: <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> Start with this directory…
Problem to solve A flow on the App server triggers an event that needs to be handled by several listeners that then need to each run for a couple of seconds…