Category "spring-boot"

page size in spring boot to get total size

the default size of page is 20, I want to be able to get all elements from endpoint url. to get 30 elements I set size like below : http://localhost:8080/api/in

Spring Boot use separate user for flywaydb and JPA

flyway.password=pwd2 #does not take effect flyway.user=user2 #does not take effect spring.datasource.username=user1 spring.datasource.password=pwd1 user1/pwd1

Simple Aspect not Executing

I had this Aspect working then all of a sudden it stopped. @AfterThrowing all classes in and below the pointcut. You can see I added a constructor to the Aspe

change Hibernate 5 naming strategy + spring boot + annotation

My spring boot project is using JPA hibernate annotation in entity classes. I have my own generic repository and I'm NOT getting the Hibernate SessionFactory fr

Creating strict mock when using @MockBean of spring boot?

I use @MockBean of spring boot (with @RunWith(SpringRunner.class)) and everything was ok so far. However the mock provides default implementation for every meth

spring boot logback-spring.xml maxFileSize not working with SizeAndTimeBasedRollingPolicy

I want to configure logging in spring boot application. I have configure logback-spring.xml. The sample of logback-spring.xml is located on here and sample of a

How to validate and sanitize HTTP Get with Spring Boot?

I keep getting this annoying error from Checkmarx code scanner, Method getTotalValue at line 220 of src\java\com\example\PeopleController.java gets user input

Spring Boot - Test for controller fails with 404 code

I want to write a test for controller. Here is test snippet: @RunWith(SpringRunner.class) @WebMvcTest(WeatherStationController.class) @ContextConfiguration(cla

Spring boot exception handling best practice

I have a simple question about exception handling. I currently have an application divided into multiple layers: controller, service, repository, and my questio

Consider defining a bean named 'couchbaseRepositoryOperationsMapping' in your configuration. Spring Boot

Any help appreciated ! I have a spring boot application to be connected to couchbase with following details Repository interface @Repository public interf

Unable to debug a Spring Boot App. The breakpoints always escape

Here's my Spring Boot config @SpringBootApplication public class ServicesApplication { public static void main(String[] args) { SpringApplication.

Correct HTML Component with the name must be given correctly

I getting error Like Fail 1 Correct HTML Component with the name 'userName/contactNumber/emailId/confirmEmailId/status/submit' must be given correctly Fail 2

Caused by: org.flywaydb.core.api.FlywayException: Validate failed. Migration Checksum mismatch for migration 2

I tried to find the solution for the below problem, but none of them worked for me. I am developing Angular + Spring Boot application using MySQL + flyway. Plea

Support multiple pathmapping in Swagger UI/Spring boot

I am using swagger 2.0 in a Spring boot(version 1.5.9.RELEASE) project. Swagger works fine but now documentation have hundreds of api and I want to redirect doc

Serving static web resources in Spring Boot & Spring Security application

I am trying to develop Spring Boot web application and securing it using Spring security java configuration. After placing my static web resources in 'src/main

Creating Pagination in Spring Data JPA

I am trying to implement pagination feature in Spring Data JPA. I am referring this Blog My Controller contains following code : @RequestMapping(value="/orga

Keycloak / SpringBoot - The Issuer <https://example.com> provided in the OpenID Configuration did not match the requested issuer <https://bar.com>

I have an issue with a project I just join. The technical stack : Jhipster with Angular and SpringBoot Keycloak I replace the right url by example.com and bar.c

Java Spring-boot caused by: org.springframework.data.mapping.PropertyReferenceException: No property id found for type

I can't understand where is the problem Repository class: @Repository public interface PhotoRepository extends JpaRepository<Photo, UUID> { Page<Phot

Spring-Boot GraphQL QueryResolver is not called

When I call a query in graphiQL i get the following response { "errors": [ { "message": "The field at path '/customers' was declared as a non null t

Intellij "cannot resolve symbol" after installing spring boot

I've recently installed the plugin "spring boot assistant" into my Intellij. When I was trying to run an old java file that I've completed before, a lot of the