Relative Content

Tag Archive for springspring-boot

How to serve html files in Spring Boot 3.1.5

All of our applications have a simple version.html file that our ops team manually injects into the root of the deployed application when it is built. Accessing it when navigating to http://<appath>.com/version.html has worked fine for years in our older Node and Grails apps. However, once we moved to Spring Boot 3.1.5 we can no longer access it as we used to be able to.

I want to use Alias in Spring Boot

I’m currently working on a shopping mall project, and I’ve been in charge of the product.
So I’ve created ProductDto from Spring, created mapper.xml, created the ProductDao interface, and also created ProductDaoImpl that implemented it.

Updating microservice to Springboot 3.2+ needs spring.config.import=bootstrap.properties

I have two microservices which almost has the same dependencies but when I update both to latest springboot version 3.2+ then only one microservice fails to load properties from boostrap property file and it needs spring.config.import=bootstrap.properties to be added in application property file, whereas other microservice with same spring boot version works fine loading properties from both bootstrap and application property files without adding spring.config.import property and hence wanted to understand why there is different behaviour in both microservices

Need to Overide the default password stored in properties file Springboot

Override the value of the default Spring db password with value fetched from another service on start up and start the application, The app should enable the database with the credentials fetched
“spring.datasource.username=test
spring.datasource.password=tester” and replace this with the valuefrom service.

Springboot2 and custom refreshable resolver

I am working on a springboot 2.7 service and trying to understand how to use custom placeholders like ${key} vs $%key% or similar. I am not stuck on using a custom placeholder, but I also need to resolve the values with a custom service.

How to debug @FormParam in intelliji

We have an api with below code and I have verified the actual file is being sent as part of the request but the method param “MultipartFile file” is resolving to null. How can I debug this? I’ve looked at the library and I dont see the code that makes that happen.

Number of concurrent connections vs number of threads in spring boot 3

I am asking the community here as i am confused with contradicting info i am finding about this on web. I have read that “By default, Tomcat in Spring Boot has a thread pool consisting of a maximum of 200 threads” . At the same time i have also read that “By default, the number of requests that Spring Boot can handle simultaneously = maximum connections (8192) + maximum waiting number (100), resulting in 8292” . So is it like using 200 threads spring boot can handle 8192 connections simultaneously at a time ? or one of the information above is wrong . We are using Spring boot 3.x.x in our apps.