Issue
How do I create a custom type converter for a boolean parameter in a GET request?
For example, I want the allowed values in the GET request to be "oui" and "non" instead of "true" and "false". I followed the <a
November 22, 2022 java, spring, spring-boot, spring-cloud, spring-cloud-gateway
We are implementing routes programmatically using a implementation of RouteDefinitionLocator
. We have two services which should register at the same route path, where one of them is meant as a fallback if the other one does not exist. The preferred route with the
November 22, 2022 interceptor, redirect, spring, spring-boot, spring-mvc
I have created a web app using spring boot and freemarker and implemented interceptor(HandlerInterceptorAdapter).
Inside the interceptor, when user is not logged then it will redirect to login page. This works fine. But the problem is that the controller is being executed
November 22, 2022 hibernate, java, javabeans, spring, verifyerror
We are upgrading spring from 4.3.20.Release to 5.3.20 and Hibernate version is 5.2.3.Final with Java 11 and Tomcat 9. All the changes are getting compiled and working well in local. But when deployed to server via jenkins they are failing with "VerifyError" during Bean
November 22, 2022 java, maven, maven-shade-plugin, spring, spring-ws
I have a Maven based Spring-WS client project that I want to package as a single jar. In eclipse, everything runs properly. When I try to package it as an executable jar, I get ClassNotFound exceptions since the Spring jars are not included in my application jar.
So I
I am trying to upload an image to a spring backend. It's supposed to work when in the background, therefore I can only use the session.uploadTask
function
My problem is that the backend is expecting me to set a Content-Type
header. One crucial part is to
November 22, 2022 amazon-sqs, aop, spring, spring-aop, spring-messaging
I'm working on a Spring Boot project that uses Spring Cloud (io.awspring.cloud:spring-cloud-aws-dependencies:2.4.2
) to produce and consume AWS SQS messages. I have several message producers and several message consumers, and all is working fine from that
November 22, 2022 java, protobuf-java, protocol-buffers, spring, spring-boot
November 22, 2022 hibernate-validator, spring, spring-mvc, spring-webflux
According to the current doc (5.0.0.RELEASE) Spring Webflux supports validation when working with annotated controllers:
By default if Bean Validation is present on the classpath — e.g. Hibernate Validator, the LocalValidatorFactoryBean is registered as a
I've migrated a Spring Boot project from 2.2.5 to 2.3.0 and after that, Validations stopped to work (they aren't invoked at all).
I read in changelog documentation (<a href="https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.3.0-M1-Release-Notes"
November 22, 2022 java, maven, model-view-controller, spring
I'm doing a review (along with the exercise given) on the stuff I've learned using mybatis.
What I'm trying to make is to get a page with a simple chart that would get list of employees in the company in chart.
But when I try to run and click on a link (which goes to
I am using a CookieSerializer and I am trying to set HostOnly to this cookie but I can't find anything related to this.
The column HostOnly I can see just in Firefox inspect. Not available in Safari or in Google Chrome.
This is how my cookie is
Please explain, why self invocation on proxy performed on target but not proxy? If that made on purpose, then why? If proxies created by subclassing, it's possible to have some code executed before each method call, even on self invocation. I tried, and I have proxy on self
This is a spring mvc application using IntelliJ.
I'm getting this error:
org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: com.testproj1.core.model.User; nested exception is org.hibernate.MappingException: Unknown entity:
November 22, 2022 google-artifact-registry, google-cloud-platform, maven
I'm evaluating using Google Artifact Registry as a replacement for Nexus, and one thing that I have been unable to find in the documentation is if it is possible to mirror or proxy an official repository, for instance mavenCentral (like suggested on this site <a
November 22, 2022 docker, docker-buildkit, maven, multistage, testcontainers
I'm trying to use Testcontainers inside the Multistage Build Dockerfile, and it's currently failing with :
ERROR --- [ main] o.t.d.DockerClientProviderStrategy : Could not find a valid Docker environment. Please check configuration. Attempted
November 22, 2022 dependencies, dependency-management, maven
November 22, 2022 apache-beam, jackson, java, maven, pom.xml
I am trying to build a Spring boot project for AWS lambda and getting a Java class version error. A dependency class was compiled using Java 17 and I'm building with Java 11. I need to stick to Java 11, as that's the latest version supported by AWS lambda.
Maven
I have a script that is unpacked from a dependency that contains an undefined variable. My goal is to set a property in my maven project that defines the variable and filter the file so that the variable in the script is replaced by the property.
I have tried
November 22, 2022 clover, clover-payment, java, maven, pom.xml
November 22, 2022 java, maven, selenium, selenium-extent-report, testng
I am working on Intellij IDE and trying to create extent report and whenever I create a reference of ExtentReports class, it doesn't recognize that variable i.e. whenever I use that variable to access the methods of that class it doesn't show the methods present in that class. Same
November 22, 2022 intellij-idea, maven, spring-boot, thymeleaf
I created a spring boot application and while running it I am getting this warning.
2022-10-27 00:35:12.520 WARN 11512 --- [ restartedMain] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates,
November 22, 2022 anypoint-studio, maven, mule4, mulesoft, pom.xml
I am trying to run an imported Application in Anypoint Studio which works with a SAP connector, but it fails right after starting, it seems to be related to the pom.xml file, as additional info I've been told that this project has been migrated from Mule 3 to Mule 4. I get the
I am reading text fields from a Docx file using docx4j Text.class, I have few "tags" which I identify and replace with passed values. Now, few tags are special which carries an indicator like "+C" or "+R" or "+L" as the penultimate two
I am supporting a Java 1.8 project (I know, I can see the eyes rolling)
The code base compiles using Maven with no error. Using VS Code there is an error. In order to resolved the error an import is required to access an inner class of a parent class in the current type
all! i need some help on what happened to my eclipse maven plugin . the building process worked well yestoday! while it failed to build this morning ! i have googled but still not able to locate what happened ! i got the stack trace from the error log ; could somebody offer me
When starting my Quarkus project locally with mvn quarkus:dev
I have no errors when executing a function which utilizes JJWT.
However when I export my project into a docker container it gives me an error stating that it can't find DefaultJwtBuilder.
When
I have an error using a Maven plugin with Java 19 specifically. Java 18 is working fine. How could I solve this issue?
I'm running within a Docker container on Centos 7.9.2009. When testing within the same container on Ubuntu 20.0 - kernel 5.15.0-52-generic, it works without
November 21, 2022 apache-commons-logging, build, maven, maven-shade-plugin