Postgres: role “postgres” does not exist
Fix FATAL: role “postgres” does not exist with Postgres.app on MacOs
Fix FATAL: role “postgres” does not exist with Postgres.app on MacOs
Setting the memory size in Gradle to prevent OutOfMemoryExceptions
Deploying apps to Elastic Beanstalk can bring surprises when using newer Tomcat versions
One of the hidden gems of Spring Data JPA is the possibility to put your query results directly into a DTO instead of having it transformed by a mapper
How to create a JPA base entity without mapping it onto a separate table
Default Spring Naming Strategy class and the property key to configure it in Spring Boot.
How to configure a Maven repository element to accept SNAPSHOT artifacts (enable snapshots, disable releases).
Benchmark results: Thymeleaf 3.0 snapshot is significantly faster than Thymeleaf 2.1.4 in this test.
How to load files from the classpath in Spring Boot using ResourceLoader (File vs InputStream).
Example showing that the finally block runs before the method returns.
Java utility to download a remote file to the system temp directory and return its path.
Add the Thymeleaf namespace (xmlns:th) and DOCTYPE so the IDE recognizes th: attributes.
Why controllers are not discovered and how to configure component scanning (scanBasePackages) in Spring Boot.
Use Restrictions.sqlRestriction(“1=1 order by rand()”) as a simple workaround for random ordering in Criteria.
Examples of configuring Spring to load properties files singly or as a list with overriding behavior.
Example showing injection of SomeController into BaseController using @Inject in CDI.
Use p:commandButton with ajax=”false” and action=”targetPage.xhtml?faces-redirect=true” for redirection.
Example of implementing a ServletContextListener and configuring it in web.xml.
How to locate your Maven installation path and configure it in IntelliJ Idea (Maven home directory).
Workaround to prevent known_hosts validation errors in JSch: set session.setConfig(“StrictHostKeyChecking”, “no”).
Use xjc -dtd -d example.dtd to generate Java classes from an XML DTD.
Spring configuration for JavaMailSenderImpl and a mail utility wrapper for sending plain text emails.
Swagger Maven plugin error occurs when @Api is present but no @ApiOperation; add @ApiOperation to fix.
How to change the admin password for Glassfish (asadmin change-admin-password) and for a specific domain.
Step-by-step guide to download, extract, start Glassfish 4 and add an init script for automatic startup.
Install Oracle Java 7 on Ubuntu 12.04 LTS with the webupd8 PPA and apt-get.