http://localhost:8000
http://localhost:8000/service/instances
http://localhost:8000/service/all
- Create Gradle Wrapper for application:
gradle wrapper
https://docs.gradle.org/current/userguide/gradle_wrapper.html
-
Create JAR
- Local installations:
gradle clean build
or if maven:mvn clean install
- With wrapper (no local installation needed)
./gradlew clean build
- Local installations:
-
Run
java βjar <JARFILE>
(inside /build/libs )
Creates database and table-changes automatically when application is run, by using changelog files.
https://www.baeldung.com/spring-data-jpa-query
extends JpaRepository<User, Long>
@Query("select u.name from User u where u.id in (:pIdList)")
...use JPQL in repository
@RequestBody
@RequestParam
ResponseEntity<?>
wrapper containing/controlling return entity and response method
- Frontend sends data with authentication encrypted heading
- btoa https://developer.mozilla.org/en-US/docs/Glossary/Base64
- Checking in backend by
UserDetailService
- Backend password encryption
- implemented by Spring Boot Security
- Authorize requests for different websites (
ant.Matchers(...)
) - Authentication implemented with
ProviderManager
- Authentication ... who are you (username, password)
- HTTP Filters (used by spring security)
- Authentication (is) Object, containing of
- Principal
- Credentials
- Authorities
- Default configurations about
- userclass
- userservice
- login path
- ...
- UserDetailService
public class UserDetailServiceImpl implements UserDetailsService
Microservices can communicate which each other via Eureka by using application-names.