Archive for the ‘Uncategorized’ Category
How to Deploy Spring Boot and AWS Elastic Beanstalk
Written by Chad Darby Thursday, 7 March 2019
Overview of Steps
- AWS EBS expects for your apps to listen on port 5000
- Update your Spring Boot application.properties to use: server.port=5000
- Select Web App > Platform Java
- Upload the JAR file
Create basic Spring Boot app
- Start with a simple REST Spring Boot app.
- In application.properties, change port to 5000:
server.port=5000
- Open terminal window
- cd project directory
- mvn clean package
- java -jar target/myapp.jar
- Test it locally: http://localhost:5000
Deploy on AWS
- Log into to AWS
- Navigate to Elastic Beanstalk
- Create a new application
- Select app type: Web Application
- Give it the name: simple-boot-demo
- Create a new environment
- For platform, select: Java
- Select option to Upload your JAR file.
Note: the screen says only WAR and ZIP files, but it does in fact accept JAR files - Upload your JAR file: target/myapp.jar
- Create the application
- Once app is created, then visit the app URL.
- You will see your Spring Boot app up and running.
Posted under Uncategorized | No Comments
Advanced Servlets: Servlet Filters Tutorial
Written by Chad Darby Friday, 1 June 2018
As a Java web developer, I recommend that you take advantage of an advanced servlet component: the Servlet Filter.
A Servlet filter is an object that can intercept HTTP requests targeted at your web application.
This article from journaldev.com does a good job of walking you through the development process. Enjoy!
Java Servlet Filters Tutorial
Posted under Java, Uncategorized | No Comments
5 Reasons Why You Should Blog as a Software Developer
Written by Chad Darby Friday, 25 May 2018
Did you know that blogging can help you get your next job and increase your profile?
Here’s a good article that provides more insight.
5 Reasons Why You Should Blog as a Software Developer
Enjoy!
Posted under Software Career Advice, Uncategorized | No Comments