Skip to content

jirkapinkas/java-blog-aggregator-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java Blog Aggregator: Boot

This application is a successor of original Java Blog Aggregator. It uses Spring boot and runs as a standalone JAR file, JSP and Tiles were switched to Thymeleaf and I organized JavaScript much better.

Development:

Run with: -Dspring.profiles.active="dev"

Will run on http://localhost:8080 with embedded HSQL database, username / password: admin / admin

Production:

Packaging: mvn clean package -P prod

Run: java -jar target/java-blog-aggregator.jar --spring.config.location=file:prod.properties --logging.config=file:logback-prod.xml

sample prod.properties contents:

spring.profiles.active=prod
server.port=8081
spring.datasource.url=jdbc:postgresql://localhost:5432/DB_NAME
spring.datasource.username=USERNAME
spring.datasource.password=PASSWORD
spring.datasource.driverClassName=org.postgresql.Driver

Made better & faster using https://www.yourkit.com/ Java Profiler