larmic / spring-boot-demos Goto Github PK
View Code? Open in Web Editor NEWMultiple spring boot samples written in Java or Kotlin.
License: Apache License 2.0
Multiple spring boot samples written in Java or Kotlin.
License: Apache License 2.0
i.e.
@Transactional(propagation = Propagation.NEVER)
@DataJpaTest
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)
@ContextConfiguration(initializers = PostgresContextInitializer.class)
public abstract class AbstractDatabaseTest {
}
with using records
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
org.jetbrains.kotlin:kotlin-maven-plugin
, org.jetbrains.kotlin:kotlin-maven-allopen
, org.jetbrains.kotlin:kotlin-maven-noarg
)org.testcontainers:elasticsearch
, org.testcontainers:testcontainers
, org.testcontainers:mongodb
, org.testcontainers:junit-jupiter
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
spring-boot-keycloak/keycloak/docker-compose.yml
quay.io/keycloak/keycloak 22.0
spring-boot-mongodb/misc/mongodb/docker-compose.yaml
mongo 7.0.8
spring-boot-postgres-java/misc/postgresql/docker-compose.yml
postgres 16.2-alpine
spring-boot-postgres-kotlin/misc/postgresql/docker-compose.yml
postgres 16.2-alpine
spring-boot-rabbitmq/misc/rabbitmq/docker-compose.yml
rabbitmq 3-management
spring-boot-in-docker/src/main/docker/Dockerfile-jvm
eclipse-temurin 19
eclipse-temurin 19
spring-boot-in-docker/src/main/docker/Dockerfile-maven
eclipse-temurin 19
spring-boot-in-docker/src/main/docker/Dockerfile-slim
eclipse-temurin 19
eclipse-temurin 19
.github/workflows/spring-boot-elasticsearch.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
.github/workflows/spring-boot-in-docker.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
docker/login-action v3
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
docker/login-action v3
.github/workflows/spring-boot-keycloak.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
.github/workflows/spring-boot-mongodb.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
.github/workflows/spring-boot-postgres.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
.github/workflows/spring-boot-properties.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
.github/workflows/spring-boot-rabbitmg.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
.github/workflows/spring-boot-rest-services.yml
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
actions/checkout v4@b4ffde65f46336ab88eb53be808477a3936bae11
actions/setup-java v3
spring-boot-elasticsearch/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
com.fasterxml.jackson.module:jackson-module-kotlin 2.17.0
org.testcontainers:testcontainers 1.19.7
org.testcontainers:elasticsearch 1.19.7
org.junit.jupiter:junit-jupiter 5.10.2
org.jetbrains.kotlin:kotlin-maven-plugin 1.9.23
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-in-docker/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
com.spotify:dockerfile-maven-plugin 1.4.13
com.google.cloud.tools:jib-maven-plugin 3.4.2
spring-boot-keycloak/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
org.junit.jupiter:junit-jupiter 5.10.2
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-mongodb/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
org.junit.jupiter:junit-jupiter 5.10.2
org.testcontainers:testcontainers 1.19.7
org.testcontainers:junit-jupiter 1.19.7
org.testcontainers:mongodb 1.19.7
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-postgres-java/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
org.flywaydb:flyway-core 9.22.3
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-postgres-kotlin/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
org.flywaydb:flyway-core 9.22.3
org.jetbrains.kotlin:kotlin-maven-plugin 1.9.23
org.jetbrains.kotlin:kotlin-maven-allopen 1.9.23
org.jetbrains.kotlin:kotlin-maven-noarg 1.9.23
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-properties-java/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
org.junit.jupiter:junit-jupiter 5.10.2
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-properties-kotlin/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
org.junit.jupiter:junit-jupiter 5.10.2
org.jetbrains.kotlin:kotlin-maven-plugin 1.9.23
org.jetbrains.kotlin:kotlin-maven-allopen 1.9.23
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-rabbitmq/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
com.fasterxml.jackson.module:jackson-module-kotlin 2.17.0
org.testcontainers:testcontainers 1.19.7
org.junit.jupiter:junit-jupiter 5.10.2
org.jetbrains.kotlinx:kotlinx-coroutines-core 1.8.0
org.jetbrains.kotlin:kotlin-maven-plugin 1.9.23
org.jetbrains.kotlin:kotlin-maven-allopen 1.9.23
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-rest-services-java/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
org.junit.jupiter:junit-jupiter 5.10.2
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-rest-services-kotlin/pom.xml
org.springframework.boot:spring-boot-starter-parent 3.1.5
org.junit.jupiter:junit-jupiter 5.10.2
org.jetbrains.kotlin:kotlin-maven-plugin 1.9.23
org.apache.maven.plugins:maven-surefire-plugin 3.2.5
org.apache.maven.plugins:maven-failsafe-plugin 3.2.5
spring-boot-in-docker/.mvn/wrapper/maven-wrapper.properties
maven 3.9.6
maven-wrapper 3.2.0
โโโ->โโโ
| keycloakSecurityConfig (field private org.keycloak.adapters.KeycloakConfigResolver org.keycloak.adapters.springsecurity.config.KeycloakWebSecurityConfigurerAdapter.keycloakConfigResolver)
โโโ<-โโโ
Google provides the Tool [Jib] (https://github.com/GoogleContainerTools/jib) to create Docker Images for Java Projects.
An example can be found here
One Advantage is that the resulting images are small in size and Jib utilizes caching to make the build process fast.
One disadvantage of this tool is that it encapsulates the whole process of creating a docker image, so one cannot see the "actual" Dockerfile that was created
import static org.springframework.security.config.Customizer.withDefaults;
@Value("${spring.security.oauth2.client.registration.keycloak.client-id}")
private String clientId;
@Bean
public SecurityFilterChain filterChain(HttpSecurity http) throws Exception {
http.authorizeHttpRequests(it -> it
.requestMatchers("/unsecure/*").permitAll()
.requestMatchers("/secure/*").hasAnyRole("admin", "custom_realm_role"))
.csrf(AbstractHttpConfigurer::disable);
http.oauth2Login(withDefaults())
.logout(logout -> logout.logoutSuccessUrl("/"));
http.oauth2ResourceServer(oauth -> oauth
.jwt(jwtConfigurer -> jwtConfigurer
.jwtAuthenticationConverter(
jwtAuthenticationConverter(new KeycloakGrantedAuthoritiesConverter(clientId))
)
)
);
return http.build();
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.