repo stringclasses 1k
values | file_url stringlengths 96 373 | file_path stringlengths 11 294 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 6
values | commit_sha stringclasses 1k
values | retrieved_at stringdate 2026-01-04 14:45:56 2026-01-04 18:30:23 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/package-info.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/package-info.java | /**
* Application security utilities.
*/
package com.baeldung.jhipster8.security;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/SpringSecurityAuditorAware.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/SpringSecurityAuditorAware.java | package com.baeldung.jhipster8.security;
import com.baeldung.jhipster8.config.Constants;
import java.util.Optional;
import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;
/**
* Implementation of {@link AuditorAware} based on Spring Security.
*/
@Component
public class ... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/UserNotActivatedException.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/UserNotActivatedException.java | package com.baeldung.jhipster8.security;
import org.springframework.security.core.AuthenticationException;
/**
* This exception is thrown in case of a not activated user trying to authenticate.
*/
public class UserNotActivatedException extends AuthenticationException {
private static final long serialVersionUI... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/SecurityUtils.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/SecurityUtils.java | package com.baeldung.jhipster8.security;
import java.util.Arrays;
import java.util.Optional;
import java.util.stream.Stream;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.context.SecurityContext;
import org.s... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/AuthoritiesConstants.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/AuthoritiesConstants.java | package com.baeldung.jhipster8.security;
/**
* Constants for Spring Security authorities.
*/
public final class AuthoritiesConstants {
public static final String ADMIN = "ROLE_ADMIN";
public static final String USER = "ROLE_USER";
public static final String ANONYMOUS = "ROLE_ANONYMOUS";
private A... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/DomainUserDetailsService.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/security/DomainUserDetailsService.java | package com.baeldung.jhipster8.security;
import com.baeldung.jhipster8.domain.Authority;
import com.baeldung.jhipster8.domain.User;
import com.baeldung.jhipster8.repository.UserRepository;
import java.util.*;
import org.hibernate.validator.internal.constraintvalidators.hv.EmailValidator;
import org.slf4j.Logger;
impor... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/SecurityConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/SecurityConfiguration.java | package com.baeldung.jhipster8.config;
import static org.springframework.security.config.Customizer.withDefaults;
import static org.springframework.security.web.util.matcher.AntPathRequestMatcher.antMatcher;
import com.baeldung.jhipster8.security.*;
import com.baeldung.jhipster8.web.filter.SpaWebFilter;
import org.sp... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/ApplicationProperties.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/ApplicationProperties.java | package com.baeldung.jhipster8.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Properties specific to Jhipster 8 Monolithic.
* <p>
* Properties are configured in the {@code application.yml} file.
* See {@link tech.jhipster.config.JHipsterProperties} for a good example.
*... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/DatabaseConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/DatabaseConfiguration.java | package com.baeldung.jhipster8.config;
import java.sql.SQLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframewor... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/package-info.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/package-info.java | /**
* Application configuration.
*/
package com.baeldung.jhipster8.config;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/DateTimeFormatConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/DateTimeFormatConfiguration.java | package com.baeldung.jhipster8.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* Con... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/CRLFLogConverter.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/CRLFLogConverter.java | package com.baeldung.jhipster8.config;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.pattern.CompositeConverter;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import org.springf... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/AsyncConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/AsyncConfiguration.java | package com.baeldung.jhipster8.config;
import java.util.concurrent.Executor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler;
import org.springframework.boot... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/WebConfigurer.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/WebConfigurer.java | package com.baeldung.jhipster8.config;
import static java.net.URLDecoder.decode;
import jakarta.servlet.*;
import java.io.File;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.web.server.*;
import org.spring... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/JacksonConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/JacksonConfiguration.java | package com.baeldung.jhipster8.config;
import com.fasterxml.jackson.datatype.hibernate6.Hibernate6Module;
import com.fasterxml.jackson.datatype.hibernate6.Hibernate6Module.Feature;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframe... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/LoggingConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/LoggingConfiguration.java | package com.baeldung.jhipster8.config;
import static tech.jhipster.config.logging.LoggingUtils.*;
import ch.qos.logback.classic.LoggerContext;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.util.HashMap;
import java.util.Map;
import org.slf4j... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/SecurityJwtConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/SecurityJwtConfiguration.java | package com.baeldung.jhipster8.config;
import static com.baeldung.jhipster8.security.SecurityUtils.AUTHORITIES_KEY;
import static com.baeldung.jhipster8.security.SecurityUtils.JWT_ALGORITHM;
import com.baeldung.jhipster8.management.SecurityMetersService;
import com.nimbusds.jose.jwk.source.ImmutableSecret;
import com... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/LiquibaseConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/LiquibaseConfiguration.java | package com.baeldung.jhipster8.config;
import java.util.concurrent.Executor;
import javax.sql.DataSource;
import liquibase.integration.spring.SpringLiquibase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.ObjectProvider;
import org.springframework.beans.factory.annot... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/StaticResourcesWebConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/StaticResourcesWebConfiguration.java | package com.baeldung.jhipster8.config;
import java.util.concurrent.TimeUnit;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.http.CacheControl;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistra... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/Constants.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/Constants.java | package com.baeldung.jhipster8.config;
/**
* Application constants.
*/
public final class Constants {
// Regex for acceptable logins
public static final String LOGIN_REGEX = "^(?>[a-zA-Z0-9!$&*+=?^_`{|}~.-]+@[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*)|(?>[_.@A-Za-z0-9-]+)$";
public static final String SYSTEM =... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/LoggingAspectConfiguration.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/config/LoggingAspectConfiguration.java | package com.baeldung.jhipster8.config;
import com.baeldung.jhipster8.aop.logging.LoggingAspect;
import org.springframework.context.annotation.*;
import org.springframework.core.env.Environment;
import tech.jhipster.config.JHipsterConstants;
@Configuration
@EnableAspectJAutoProxy
public class LoggingAspectConfiguratio... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/filter/SpaWebFilter.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/filter/SpaWebFilter.java | package com.baeldung.jhipster8.web.filter;
import jakarta.servlet.FilterChain;
import jakarta.servlet.ServletException;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import java.io.IOException;
import org.springframework.web.filter.OncePerRequestFilter;
public class ... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/filter/package-info.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/filter/package-info.java | /**
* Request chain filters.
*/
package com.baeldung.jhipster8.web.filter;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/AccountResource.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/AccountResource.java | package com.baeldung.jhipster8.web.rest;
import com.baeldung.jhipster8.domain.User;
import com.baeldung.jhipster8.repository.UserRepository;
import com.baeldung.jhipster8.security.SecurityUtils;
import com.baeldung.jhipster8.service.MailService;
import com.baeldung.jhipster8.service.UserService;
import com.baeldung.jh... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/AuthenticateController.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/AuthenticateController.java | package com.baeldung.jhipster8.web.rest;
import static com.baeldung.jhipster8.security.SecurityUtils.AUTHORITIES_KEY;
import static com.baeldung.jhipster8.security.SecurityUtils.JWT_ALGORITHM;
import com.baeldung.jhipster8.web.rest.vm.LoginVM;
import com.fasterxml.jackson.annotation.JsonProperty;
import jakarta.servl... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/package-info.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/package-info.java | /**
* Rest layer.
*/
package com.baeldung.jhipster8.web.rest;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/PublicUserResource.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/PublicUserResource.java | package com.baeldung.jhipster8.web.rest;
import com.baeldung.jhipster8.service.UserService;
import com.baeldung.jhipster8.service.dto.UserDTO;
import java.util.*;
import java.util.Collections;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.data.domain.Page;
import org.springframewo... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/UserResource.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/UserResource.java | package com.baeldung.jhipster8.web.rest;
import com.baeldung.jhipster8.config.Constants;
import com.baeldung.jhipster8.domain.User;
import com.baeldung.jhipster8.repository.UserRepository;
import com.baeldung.jhipster8.security.AuthoritiesConstants;
import com.baeldung.jhipster8.service.MailService;
import com.baeldun... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/AuthorityResource.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/AuthorityResource.java | package com.baeldung.jhipster8.web.rest;
import com.baeldung.jhipster8.domain.Authority;
import com.baeldung.jhipster8.repository.AuthorityRepository;
import com.baeldung.jhipster8.web.rest.errors.BadRequestAlertException;
import jakarta.validation.Valid;
import java.net.URI;
import java.net.URISyntaxException;
import... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/InvalidPasswordException.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/InvalidPasswordException.java | package com.baeldung.jhipster8.web.rest.errors;
import org.springframework.http.HttpStatus;
import org.springframework.web.ErrorResponseException;
import tech.jhipster.web.rest.errors.ProblemDetailWithCause.ProblemDetailWithCauseBuilder;
@SuppressWarnings("java:S110") // Inheritance tree of classes should not be too ... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/package-info.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/package-info.java | /**
* Rest layer error handling.
*/
package com.baeldung.jhipster8.web.rest.errors;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/LoginAlreadyUsedException.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/LoginAlreadyUsedException.java | package com.baeldung.jhipster8.web.rest.errors;
@SuppressWarnings("java:S110") // Inheritance tree of classes should not be too deep
public class LoginAlreadyUsedException extends BadRequestAlertException {
private static final long serialVersionUID = 1L;
public LoginAlreadyUsedException() {
super(Er... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/ErrorConstants.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/ErrorConstants.java | package com.baeldung.jhipster8.web.rest.errors;
import java.net.URI;
public final class ErrorConstants {
public static final String ERR_CONCURRENCY_FAILURE = "error.concurrencyFailure";
public static final String ERR_VALIDATION = "error.validation";
public static final String PROBLEM_BASE_URL = "https://... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/FieldErrorVM.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/FieldErrorVM.java | package com.baeldung.jhipster8.web.rest.errors;
import java.io.Serializable;
public class FieldErrorVM implements Serializable {
private static final long serialVersionUID = 1L;
private final String objectName;
private final String field;
private final String message;
public FieldErrorVM(Stri... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/EmailAlreadyUsedException.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/EmailAlreadyUsedException.java | package com.baeldung.jhipster8.web.rest.errors;
@SuppressWarnings("java:S110") // Inheritance tree of classes should not be too deep
public class EmailAlreadyUsedException extends BadRequestAlertException {
private static final long serialVersionUID = 1L;
public EmailAlreadyUsedException() {
super(Er... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/BadRequestAlertException.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/BadRequestAlertException.java | package com.baeldung.jhipster8.web.rest.errors;
import java.net.URI;
import org.springframework.http.HttpStatus;
import org.springframework.web.ErrorResponseException;
import tech.jhipster.web.rest.errors.ProblemDetailWithCause;
import tech.jhipster.web.rest.errors.ProblemDetailWithCause.ProblemDetailWithCauseBuilder;... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/ExceptionTranslator.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/errors/ExceptionTranslator.java | package com.baeldung.jhipster8.web.rest.errors;
import static org.springframework.core.annotation.AnnotatedElementUtils.findMergedAnnotation;
import jakarta.servlet.http.HttpServletRequest;
import java.net.URI;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Map;
import j... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/vm/package-info.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/vm/package-info.java | /**
* Rest layer visual models.
*/
package com.baeldung.jhipster8.web.rest.vm;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/vm/KeyAndPasswordVM.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/vm/KeyAndPasswordVM.java | package com.baeldung.jhipster8.web.rest.vm;
/**
* View Model object for storing the user's key and password.
*/
public class KeyAndPasswordVM {
private String key;
private String newPassword;
public String getKey() {
return key;
}
public void setKey(String key) {
this.key = ke... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/vm/ManagedUserVM.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/vm/ManagedUserVM.java | package com.baeldung.jhipster8.web.rest.vm;
import com.baeldung.jhipster8.service.dto.AdminUserDTO;
import jakarta.validation.constraints.Size;
/**
* View Model extending the AdminUserDTO, which is meant to be used in the user management UI.
*/
public class ManagedUserVM extends AdminUserDTO {
public static fi... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/vm/LoginVM.java | jhipster-8-modules/jhipster-8-monolithic/src/main/java/com/baeldung/jhipster8/web/rest/vm/LoginVM.java | package com.baeldung.jhipster8.web.rest.vm;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
/**
* View Model object for storing a user's credentials.
*/
public class LoginVM {
@NotNull
@Size(min = 1, max = 50)
private String username;
@NotNull
@Size(m... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/IntegrationTest.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/IntegrationTest.java | package com.cars.app;
import com.cars.app.config.AsyncSyncConfiguration;
import com.cars.app.config.EmbeddedSQL;
import com.cars.app.config.JacksonConfiguration;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Targ... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/TechnicalStructureTest.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/TechnicalStructureTest.java | package com.cars.app;
import static com.tngtech.archunit.base.DescribedPredicate.alwaysTrue;
import static com.tngtech.archunit.core.domain.JavaClass.Predicates.belongToAnyOf;
import static com.tngtech.archunit.library.Architectures.layeredArchitecture;
import com.tngtech.archunit.core.importer.ImportOption.DoNotIncl... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/management/SecurityMetersServiceTests.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/management/SecurityMetersServiceTests.java | package com.cars.app.management;
import static org.assertj.core.api.Assertions.assertThat;
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.MeterRegistry;
import io.micrometer.core.instrument.simple.SimpleMeterRegistry;
import java.util.Collection;
import org.junit.jupiter.api.Before... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/domain/CarAsserts.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/domain/CarAsserts.java | package com.cars.app.domain;
import static org.assertj.core.api.Assertions.assertThat;
public class CarAsserts {
/**
* Asserts that the entity has all properties (fields/relationships) set.
*
* @param expected the expected entity
* @param actual the actual entity
*/
public static voi... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/domain/AssertUtils.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/domain/AssertUtils.java | package com.cars.app.domain;
import java.math.BigDecimal;
import java.time.ZoneOffset;
import java.time.ZonedDateTime;
import java.util.Comparator;
public class AssertUtils {
public static Comparator<ZonedDateTime> zonedDataTimeSameInstant = Comparator.nullsFirst(
(e1, a2) -> e1.withZoneSameInstant(ZoneO... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/domain/CarTest.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/domain/CarTest.java | package com.cars.app.domain;
import static com.cars.app.domain.CarTestSamples.*;
import static org.assertj.core.api.Assertions.assertThat;
import com.cars.app.web.rest.TestUtil;
import org.junit.jupiter.api.Test;
class CarTest {
@Test
void equalsVerifier() throws Exception {
TestUtil.equalsVerifier(... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/domain/CarTestSamples.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/domain/CarTestSamples.java | package com.cars.app.domain;
import java.util.Random;
import java.util.concurrent.atomic.AtomicLong;
public class CarTestSamples {
private static final Random random = new Random();
private static final AtomicLong longCount = new AtomicLong(random.nextInt() + (2 * Integer.MAX_VALUE));
public static Car ... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/repository/timezone/DateTimeWrapper.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/repository/timezone/DateTimeWrapper.java | package com.cars.app.repository.timezone;
import jakarta.persistence.*;
import java.io.Serializable;
import java.time.*;
import java.util.Objects;
@Entity
@Table(name = "jhi_date_time_wrapper")
public class DateTimeWrapper implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@G... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/repository/timezone/DateTimeWrapperRepository.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/repository/timezone/DateTimeWrapperRepository.java | package com.cars.app.repository.timezone;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
/**
* Spring Data JPA repository for the {@link DateTimeWrapper} entity.
*/
@Repository
public interface DateTimeWrapperRepository extends JpaRepository<DateTimeW... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/SecurityUtilsUnitTest.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/SecurityUtilsUnitTest.java | package com.cars.app.security;
import static org.assertj.core.api.Assertions.assertThat;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Optional;
import org.junit.jupiter.api.AfterEach;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.springframework.se... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/TestAuthenticationResource.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/TestAuthenticationResource.java | package com.cars.app.security.jwt;
import org.springframework.web.bind.annotation.*;
/**
* REST controller for managing testing authentication token.
*/
@RestController
@RequestMapping("/api")
public class TestAuthenticationResource {
/**
* {@code GET /authenticate} : check if the authentication token co... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/AuthenticationIntegrationTest.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/AuthenticationIntegrationTest.java | package com.cars.app.security.jwt;
import com.cars.app.config.SecurityConfiguration;
import com.cars.app.config.SecurityJwtConfiguration;
import com.cars.app.config.WebConfigurer;
import com.cars.app.management.SecurityMetersService;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
impor... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/TokenAuthenticationSecurityMetersIT.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/TokenAuthenticationSecurityMetersIT.java | package com.cars.app.security.jwt;
import static com.cars.app.security.jwt.JwtAuthenticationTestUtils.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.springframework.http.HttpHeaders.AUTHORIZATION;
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.MeterR... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/TokenAuthenticationIT.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/TokenAuthenticationIT.java | package com.cars.app.security.jwt;
import static com.cars.app.security.jwt.JwtAuthenticationTestUtils.*;
import static org.springframework.http.HttpHeaders.AUTHORIZATION;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.*;
import org.junit.jupiter.api.Test;
import org.springframework.be... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/JwtAuthenticationTestUtils.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/security/jwt/JwtAuthenticationTestUtils.java | package com.cars.app.security.jwt;
import static com.cars.app.security.SecurityUtils.AUTHORITIES_KEY;
import static com.cars.app.security.SecurityUtils.JWT_ALGORITHM;
import com.nimbusds.jose.jwk.source.ImmutableSecret;
import com.nimbusds.jose.util.Base64;
import io.micrometer.core.instrument.MeterRegistry;
import i... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/PostgreSqlTestContainer.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/PostgreSqlTestContainer.java | package com.cars.app.config;
import java.util.Collections;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.JdbcDatabaseContainer;
import org.testcontainers.containers.PostgreSQLContainer;
import org.testcontainers.containers.output.Slf4jLogConsumer;
public class PostgreSq... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/SqlTestContainer.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/SqlTestContainer.java | package com.cars.app.config;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.testcontainers.containers.JdbcDatabaseContainer;
public interface SqlTestContainer extends InitializingBean, DisposableBean {
JdbcDatabaseContainer<?> getTest... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/CRLFLogConverterTest.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/CRLFLogConverterTest.java | package com.cars.app.config;
import static org.assertj.core.api.AssertionsForClassTypes.assertThat;
import static org.junit.jupiter.api.Assertions.*;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when;
import ch.qos.logback.classic.spi.ILoggingEvent;
import java.util.Collections;
import ja... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/EmbeddedSQL.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/EmbeddedSQL.java | package com.cars.app.config;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface EmbeddedSQL {
}
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/SqlTestContainersSpringContextCustomizerFactory.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/SqlTestContainersSpringContextCustomizerFactory.java | package com.cars.app.config;
import java.util.Arrays;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.boot.test.util.TestPropertyValues;
import org.springframework.context.Configu... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/StaticResourcesWebConfigurerTest.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/StaticResourcesWebConfigurerTest.java | package com.cars.app.config;
import static com.cars.app.config.StaticResourcesWebConfiguration.*;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.*;
import java.util.concurrent.TimeUnit;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/AsyncSyncConfiguration.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/AsyncSyncConfiguration.java | package com.cars.app.config;
import java.util.concurrent.Executor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.task.SyncTaskExecutor;
@Configuration
public class AsyncSyncConfiguration {
@Bean(name = "taskExecuto... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/WebConfigurerTestController.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/WebConfigurerTestController.java | package com.cars.app.config;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class WebConfigurerTestController {
@GetMapping("/api/test-cors")
public void testCorsOnApiPath() {}
@GetMapping("/test/test-cors"... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/WebConfigurerTest.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/WebConfigurerTest.java | package com.cars.app.config;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyString;
import static org.mockito.Mockito.*;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/SpringBootTestClassOrderer.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/SpringBootTestClassOrderer.java | package com.cars.app.config;
import com.cars.app.IntegrationTest;
import java.util.Comparator;
import org.junit.jupiter.api.ClassDescriptor;
import org.junit.jupiter.api.ClassOrderer;
import org.junit.jupiter.api.ClassOrdererContext;
public class SpringBootTestClassOrderer implements ClassOrderer {
@Override
... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/timezone/HibernateTimeZoneIT.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/config/timezone/HibernateTimeZoneIT.java | package com.cars.app.config.timezone;
import static java.lang.String.format;
import static org.assertj.core.api.Assertions.assertThat;
import com.cars.app.IntegrationTest;
import com.cars.app.repository.timezone.DateTimeWrapper;
import com.cars.app.repository.timezone.DateTimeWrapperRepository;
import java.time.*;
im... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/filter/SpaWebFilterIT.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/filter/SpaWebFilterIT.java | package com.cars.app.web.filter;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.forwardedUrl;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status;
import com.cars.... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/CarResourceIT.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/CarResourceIT.java | package com.cars.app.web.rest;
import static com.cars.app.domain.CarAsserts.*;
import static com.cars.app.web.rest.TestUtil.createUpdateProxyForBean;
import static org.assertj.core.api.Assertions.assertThat;
import static org.hamcrest.Matchers.hasItem;
import static org.springframework.test.web.servlet.request.MockMvc... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/TestUtil.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/TestUtil.java | package com.cars.app.web.rest;
import static org.assertj.core.api.Assertions.assertThat;
import jakarta.persistence.EntityManager;
import jakarta.persistence.TypedQuery;
import jakarta.persistence.criteria.CriteriaBuilder;
import jakarta.persistence.criteria.CriteriaQuery;
import jakarta.persistence.criteria.Root;
im... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/WithUnauthenticatedMockUser.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/WithUnauthenticatedMockUser.java | package com.cars.app.web.rest;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.security.core.context.SecurityContext;
import org.springframework.security.core.context.SecurityCont... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/errors/ExceptionTranslatorTestController.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/errors/ExceptionTranslatorTestController.java | package com.cars.app.web.rest.errors;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import org.springframework.dao.ConcurrencyFailureException;
import org.springframework.http.HttpStatus;
import org.springframework.security.access.AccessDeniedException;
import org.springframework.secu... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/errors/ExceptionTranslatorIT.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/test/java/com/cars/app/web/rest/errors/ExceptionTranslatorIT.java | package com.cars.app.web.rest.errors;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get;
import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post;
import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content;
import static org... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/ApplicationWebXml.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/ApplicationWebXml.java | package com.cars.app;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import tech.jhipster.config.DefaultProfileUtil;
/**
* This is a helper Java class that provides an alternative to creating a {@code web.xml}.
* Th... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/CarsappApp.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/CarsappApp.java | package com.cars.app;
import com.cars.app.config.ApplicationProperties;
import com.cars.app.config.CRLFLogConverter;
import jakarta.annotation.PostConstruct;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Arrays;
import java.util.Collection;
import java.util.Optional;
import org.ap... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/package-info.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/package-info.java | /**
* Application root.
*/
package com.cars.app;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/GeneratedByJHipster.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/GeneratedByJHipster.java | package com.cars.app;
import jakarta.annotation.Generated;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Generated(value = "JHipster", comments = "Generated by JHipster 8.4.0")
@Retention(RetentionPolic... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/management/package-info.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/management/package-info.java | /**
* Application management.
*/
package com.cars.app.management;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/management/SecurityMetersService.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/management/SecurityMetersService.java | package com.cars.app.management;
import io.micrometer.core.instrument.Counter;
import io.micrometer.core.instrument.MeterRegistry;
import org.springframework.stereotype.Service;
@Service
public class SecurityMetersService {
public static final String INVALID_TOKENS_METER_NAME = "security.authentication.invalid-t... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/aop/logging/package-info.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/aop/logging/package-info.java | /**
* Logging aspect.
*/
package com.cars.app.aop.logging;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/aop/logging/LoggingAspect.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/aop/logging/LoggingAspect.java | package com.cars.app.aop.logging;
import java.util.Arrays;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.AfterThrowing;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/domain/package-info.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/domain/package-info.java | /**
* Domain objects.
*/
package com.cars.app.domain;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/domain/Car.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/domain/Car.java | package com.cars.app.domain;
import jakarta.persistence.*;
import java.io.Serializable;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
* A Car.
*/
@Entity
@Table(name = "car")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@SuppressWarnings("common-java:D... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/domain/AbstractAuditingEntity.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/domain/AbstractAuditingEntity.java | package com.cars.app.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import jakarta.persistence.Column;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.MappedSuperclass;
import java.io.Serializable;
import java.time.Instant;
import org.springframework.data.annotation.Create... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/repository/package-info.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/repository/package-info.java | /**
* Repository layer.
*/
package com.cars.app.repository;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/repository/CarRepository.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/repository/CarRepository.java | package com.cars.app.repository;
import com.cars.app.domain.Car;
import org.springframework.data.jpa.repository.*;
import org.springframework.stereotype.Repository;
/**
* Spring Data JPA repository for the Car entity.
*/
@SuppressWarnings("unused")
@Repository
public interface CarRepository extends JpaRepository<Ca... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/security/package-info.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/security/package-info.java | /**
* Application security utilities.
*/
package com.cars.app.security;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/security/SpringSecurityAuditorAware.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/security/SpringSecurityAuditorAware.java | package com.cars.app.security;
import com.cars.app.config.Constants;
import java.util.Optional;
import org.springframework.data.domain.AuditorAware;
import org.springframework.stereotype.Component;
/**
* Implementation of {@link AuditorAware} based on Spring Security.
*/
@Component
public class SpringSecurityAudito... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/security/SecurityUtils.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/security/SecurityUtils.java | package com.cars.app.security;
import java.util.Arrays;
import java.util.Optional;
import java.util.stream.Stream;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.context.SecurityContext;
import org.springframe... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/security/AuthoritiesConstants.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/security/AuthoritiesConstants.java | package com.cars.app.security;
/**
* Constants for Spring Security authorities.
*/
public final class AuthoritiesConstants {
public static final String ADMIN = "ROLE_ADMIN";
public static final String USER = "ROLE_USER";
public static final String ANONYMOUS = "ROLE_ANONYMOUS";
private Authorities... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/SecurityConfiguration.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/SecurityConfiguration.java | package com.cars.app.config;
import static org.springframework.security.config.Customizer.withDefaults;
import static org.springframework.security.web.util.matcher.AntPathRequestMatcher.antMatcher;
import com.cars.app.security.*;
import com.cars.app.web.filter.SpaWebFilter;
import org.springframework.context.annotati... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/ApplicationProperties.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/ApplicationProperties.java | package com.cars.app.config;
import org.springframework.boot.context.properties.ConfigurationProperties;
/**
* Properties specific to Carsapp.
* <p>
* Properties are configured in the {@code application.yml} file.
* See {@link tech.jhipster.config.JHipsterProperties} for a good example.
*/
@ConfigurationProperti... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/DatabaseConfiguration.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/DatabaseConfiguration.java | package com.cars.app.config;
import java.sql.SQLException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.core.env... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/CacheConfiguration.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/CacheConfiguration.java | package com.cars.app.config;
import com.hazelcast.config.*;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import jakarta.annotation.PreDestroy;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springfr... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/package-info.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/package-info.java | /**
* Application configuration.
*/
package com.cars.app.config;
| java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/DateTimeFormatConfiguration.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/DateTimeFormatConfiguration.java | package com.cars.app.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.format.FormatterRegistry;
import org.springframework.format.datetime.standard.DateTimeFormatterRegistrar;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
/**
* Configure the... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/CRLFLogConverter.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/CRLFLogConverter.java | package com.cars.app.config;
import ch.qos.logback.classic.spi.ILoggingEvent;
import ch.qos.logback.core.pattern.CompositeConverter;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.slf4j.Marker;
import org.slf4j.MarkerFactory;
import org.springframework.b... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/AsyncConfiguration.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/AsyncConfiguration.java | package com.cars.app.config;
import java.util.concurrent.Executor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler;
import org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler;
import org.springframework.boot.autoconfi... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/WebConfigurer.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/WebConfigurer.java | package com.cars.app.config;
import static java.net.URLDecoder.decode;
import jakarta.servlet.*;
import java.io.File;
import java.nio.charset.StandardCharsets;
import java.nio.file.Paths;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.web.server.*;
import org.springframework.... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
eugenp/tutorials | https://github.com/eugenp/tutorials/blob/4463e58ffb73fe599bac2479abd84598c6e70a1a/jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/JacksonConfiguration.java | jhipster-8-modules/jhipster-8-microservice/car-app/src/main/java/com/cars/app/config/JacksonConfiguration.java | package com.cars.app.config;
import com.fasterxml.jackson.datatype.hibernate6.Hibernate6Module;
import com.fasterxml.jackson.datatype.hibernate6.Hibernate6Module.Feature;
import com.fasterxml.jackson.datatype.jdk8.Jdk8Module;
import com.fasterxml.jackson.datatype.jsr310.JavaTimeModule;
import org.springframework.conte... | java | MIT | 4463e58ffb73fe599bac2479abd84598c6e70a1a | 2026-01-04T14:45:57.069771Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.