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