Too Many Languages!
ARGH! I've been bounced between languages. It's driving me NUTS. This is a comparison of how to do something in each to help me map between them. There is definitely…
ARGH! I've been bounced between languages. It's driving me NUTS. This is a comparison of how to do something in each to help me map between them. There is definitely…
Background GroovyPageUnitTestMixin From the Grails guide, testing a view in a unit test involves: Annotating the Specification with: @TestMixin(GroovyPageUnitTestMixin). Calling render(view: '...', model: ...) or render(template: '...', model: ...) whose…
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…