Category "spring-boot"

Externalising Spring Boot properties when deploying to Docker

In my Spring Boot app I want to externalise the properties to run in a Docker container. When first deployed, the properties that are currently in my-server/sr

'mvnw' is not recognized as an internal or external command

I am getting the following, while running 'mvnw' command. How to add maven wrapper to a project? project_root>mvnw 'mvnw' is not recognized as an inter

spring boot application in docker terminates immediately

Simple spring boot application trying to run in docker, however after docker run, exits immediately. Here is my Dockerfile FROM anapsix/alpine-java:latest VOLU

Spring Boot, ClassNotDef Error with JaxB, Package -Info.java

I am using AJSC framework in SpringBoot with JaxB implementation. I built the stubs outside the project and copied them inside the project with proper directori

This application has no explicit mapping for /error bad request 400

I have a small spring boot project,, which works fine . But, I tried to add some kind of validation.. I worked on one html page but failed on the other with no

Unable to infer base url... springfox-swagger2 version 2.9.2

Version of springfox-swagger that I am using [ ![Download] 1]2 What kind of issue is this? Project structure: SwaggerConfig is in automate.api.config.swagger.Sw

HTTP status code 401 even though I’m sending credentials in the request

Recently i have introduced JWT authentication to my Springboot and Angualr2 based App. In There i tried to do a POST request by passing the JWT token as below i

HTTP status code 401 even though I’m sending credentials in the request

Recently i have introduced JWT authentication to my Springboot and Angualr2 based App. In There i tried to do a POST request by passing the JWT token as below i

What difference does it make to put an annotation @Lob or not?

There is a request table in my database. Here is its structure Usually I created the entity with my hands, but this time I decided to generate it from the data

`servletRequest cannot be null` -> SpringBoot - WebClient - GET request with Keycloak

I'm trying to make GET request between two microservices (with Keycloak authentication). Let's say microservice A is asking microservice B for some resources. M

SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at XMLHttpRequest.onLoad

hope this is not a stupid question. connecting ionic and java springboot , there's no error message when the app is live serving in a browser and the data is

Springboot 2.6.7, springdoc 1.6.8 i need to have v3/api-docs and v1/api-docs

I'm trying to upgrade my springboot app from 2.5.9 to 2.6.7 so i needed to migrate from springfox 3.0.0 to springdoc 1.6.8 because of many compatibility issues.

Showing a loader while waiting for server-side code with AJAX [duplicate]

My problem was described in Showing a loader while waiting for server-side code (without a blank page). To summarize briefly, I want to show t

Showing a loader while waiting for server-side code (without a blank page)

I've tried to make a loader for every page but failed. I want to show the loader before completing server-side jobs: [Loader] -> [Target page]. However, HTML

Spring Boot doesn't load javascript file

After Spring starts, I open my ajax.html page, but nothing happens. There is no error message, the js file just doesn't start. If I write javascript-code in aja

How to fix org.apache.spark.SparkException: Job aborted due to stage failure Task & com.datastax.spark.connector.rdd.partitioner.CassandraPartition

In my project i am using spark-Cassandra-connector to read the from Cassandra table and process it further into JavaRDD but i am facing issue while processing C

com.netflix.zuul.exception.ZuulException: Hystrix Readed time out

I am trying microservices with eureka and zuul. And there is a problem with all requests, which take more then 1 second. As I have understood, 1 second is defau

After Migrating from spring boot 2.6.2 to 2.6.6 , getting org.springframework.context.ApplicationContextException

Error logs: org.springframework.context.ApplicationContextException: Failed to start bean 'inputBindingLifecycle'; nested exception is java.lang.NoSuchMethodEr

java.lang.IllegalStateException: Unable to detect database type for Sybase datasource

I am getting the Unable to detect database type for Sybase Datasource configured in my spring boot application. Spring boot version: 1.5.3 application.propert

What is wrong with my native query in jpa?

I'm sending a very simple query to the database, but I'm getting an error. It feels like I'm missing something very simple. I guess it wouldn't allow me to crea