Spring Boot pt. 50 The Actuator
management.endpoints.web.exposure.include=mappings,info,health,metrics,beans,env,loggers,threaddump
In today's episode we cover Java Spring Boot's Actuator, which allows you to check metrics of your application in production.
LinkTree:
https://linktr.ee/peachezprogramming
2
views
Spring Boot pt. 49 Auto-Generating Tables & Columns
spring.jpa.hibernate.ddl-auto=update
You can configure Spring Boot to automatically update your schema (tables & columns) every time you add a new @Entity class and run the project.
LinkTree:
https://linktr.ee/peachezprogramming
9
views
Spring Boot pt. 48 Dependency Injection, Inversion of Control, & Spring Container
In today's episode we discuss how Spring Boot works including a broader discussion on Dependency Injection, how Annotations instantiate objects, the Spring Container, Component Scanning, and the @Bean annotation.
LinkTree:
https://linktr.ee/peachezprogramming
3
views
Spring Boot pt. 47 Spring Starter Validation @Valid
In today's episode of the No BS guide to Java Spring Boot, we cover the Valid annotation & entity level validation.
LinkTree:
https://linktr.ee/peachezprogramming
4
views
Spring Boot pt. 46 Server Sent Events (SSEs)
In today's episode of the No BS guide to Java Spring Boot, we cover Server Sent Events or SSEs. We will use the SseEmitter class.
LinkTree:
https://linktr.ee/peachezprogramming
3
views
Spring Boot pt. 45 Events
In today's episode of the No BS guide to Java Spring Boot we cover Events.
LinkTree:
https://linktr.ee/peachezprogramming
2
views
Spring Boot pt. 44 Transactions and @Transactional
start.spring.io
CREATE TABLE bank (
name VARCHAR(255) NOT NULL PRIMARY KEY,
balance DECIMAL(19,2) NOT NULL
);
INSERT INTO bank (name, balance) VALUES ('Peach', 100.00);
INSERT INTO bank (name, balance) VALUES ('Berry', 100.00);
In today's episode of the No BS guide to Java Spring Boot, we cover transactions, rollbacks, and the Transactional annotation.
LinkTree:
https://linktr.ee/peachezprogramming
3
views
Spring Boot pt. 43 Security (9/9) Final Thoughts & Next Steps
In today's episode we wrap up Spring Security and point you in the next direction.
LinkTree:
https://linktr.ee/peachezprogramming
5
views
Spring Boot pt. 42 Security (8/9) User Details Service in Database
In today's episode we remove the in memory User Details Service and put it in the database.
LinkTree:
https://linktr.ee/peachezprogramming
3
views
Spring Boot pt. 41 Security (7/9) Validating JSON Web Tokens
In today's episode we validate JSON Web Tokens (JWT) in Java Spring Boot using a filter.
LinkTree:
https://linktr.ee/peachezprogramming
4
views
Spring Boot pt. 35: Security (1/9) - Spring's Default Authentication
DEPENDENCY: Go to this website & copy the dependency:
https://docs.spring.io/spring-securit...
In today's episode we start a mini series on Java Spring Boot Security. We cover the default username & password, then customize our username & password. We use the browser & postman. We also cover /login and /logout & the redirects spring does by default.
LinkTree:
https://linktr.ee/peachezprogramming
1
view
Spring Boot pt. 34: Headers (2/2) Accept
Click the link for the dependency:
https://mvnrepository.com/artifact/co...
In today's episode we cover headers part 2: Accept. We return JSON & XML depending on what the client requests.
LinkTree:
https://linktr.ee/peachezprogramming
1
view
Spring Boot pt. 40 Security (6/9) Generating JSON Web Tokens
THE POM FILE MAVEN DEPENDENCIES HAVE CHANGED: SEE THE PINNED COMMENT
In today's video we are implementing JSON Web Tokens (JWT) in Java Spring Boot. We are going to generate the token & send it back to the client.
LinkTree:
https://linktr.ee/peachezprogramming
1
view
Spring Boot pt. 39: Security (5/9) Method Level Security @PreAuthorize
In today's Java Spring Boot Security video we cover method level security, the @PreAuthorize @PostAuthorize @Secure @PreFilter @PostFilter. We do this instead of URL based security using the Security Filter Chain.
LinkTree:
https://linktr.ee/peachezprogramming
2
views
Spring Boot pt. 38: Security (4/9) - Authorities & Roles
In today's video on Spring Boot Security we cover Authorities & Roles using .roles(), .authorities() & requestMatchers().
LinkTree:
https://linktr.ee/peachezprogramming
1
view
Spring Boot pt. 37: Security (3/9) - Security Filter Chain & Authenticated Endpoints
In today's episode of Java Spring Boot Security we cover the Security Filter Chain & Authenticated endpoints using authorizeRequests(), requestMatchers(), permitAll(), authenticated(), formLogin() & httpBasic().
LinkTree:
https://linktr.ee/peachezprogramming
1
view
Spring Boot pt. 36: Security (2/9) - User Details Service & Password Encoder
In today's episode we cover the User Details Service to store our username & password in memory (inMemoryUserDetailsManager). We configure our SecurityConfiguration class and use BCryptPasswordEncoder to encode our password.
LinkTree:
https://linktr.ee/peachezprogramming
1
view
Spring Boot pt. 32: UUIDs/GUIDs Universally Unique Identifiers
In today's episode we implement UUIDs (aka GUIDs, Globally Unique Identifiers)
SQL QUERIES:
CREATE TABLE orders (
id BINARY(16) PRIMARY KEY,
total DOUBLE NOT NULL
);
SELECT BIN_TO_UUID(id) AS id, total FROM orders;
LinkTree:
https://linktr.ee/peachezprogramming
2
views
Spring Boot pt. 31: Saving JSON to mySQL (Serialization)
In today's episode we save a copy of our HTTP response in the form of JSON. We use Jackson's Object Mapper to serialize and deserialize our response.
LinkTree:
https://linktr.ee/peachezprogramming
1
view
Spring Boot pt. 30: External API Integration (Cat Facts API)
In today's episode we call an external API: Cat Facts and use the response to build our own internal API
LinkTree:
https://linktr.ee/peachezprogramming
2
views
Spring Boot pt. 29: Intro to Logging (SLF4J)
In today's episode we cover the basics of logging including printing to the console and saving a logging file.
SLF4J Simple Logging Facade for Java, INFO, DEBUG, ERROR.
LinkTree:
https://linktr.ee/peachezprogramming
2
views
Spring Boot pt. 28: A brief intro to all the things you can return
There are so many things you can return in Spring Boot, like String, Response Entity, PDFs, PNG, JSON, YAML, Excel, Streaming Audio/video/text, SSEs and HTML/XML. This is not a guide to each one, but rather an intro to explain the possible things you could learn next. We do cover Thymeleaf at a high level.
LinkTree:
https://linktr.ee/peachezprogramming
2
views
Spring Boot pt. 27: Cache (2/2) Cache Manger & Scheduling Cache Evict
In today's No BS Guide to Java Spring Boot we are covering the Cache Manager and Scheduling Evicting the Cache regularly.
@Configuration @Cacheable @EnableCaching @EnableScheduling @Scheduled
LinkTree:
https://linktr.ee/peachezprogramming
1
view
Spring Boot pt. 33: Headers (1/2) Custom Headers
In today's episode we cover headers as part of the HTTP request in Java Spring Boot.
LinkTree:
https://linktr.ee/peachezprogramming
3
views
Spring Boot pt. 25: Relational Mappings @ManyToMany (3/3)
SQL Queries:
CREATE TABLE customer_address (
customer_id BIGINT,
address_id BIGINT,
PRIMARY KEY (customer_id, address_id),
FOREIGN KEY (customer_id) REFERENCES customer(id),
FOREIGN KEY (address_id) REFERENCES address(id)
);
INSERT INTO customer_address (customer_id, address_id)
SELECT customer_id, id as address_id
FROM address;
ALTER TABLE address
DROP FOREIGN KEY fk_customer;
ALTER TABLE address
DROP COLUMN customer_id;
In today's No BS Guide to Java Spring Boot, we finish Relational Mappings by using the @ManyToMany annotation, creating a Junction table, upholding the previous relationship of @OneToMany. We also use @JSONIGNORE to deal with a circle reference.
LinkTree:
https://linktr.ee/peachezprogramming
1
view