SPRING: class-level @Value
I have configuration with
Caused by: org.springframework.expression.ParseException: Expression
I am using Spring XML based App and looking to write the below code:
If OS = windows, then create a file at user.home/report/ and for unix /some/path/report/
Bean not found when using @ConditionalOnProperty and @ComponentScan
I’m working on a Spring Boot application and I’m facing an issue with bean creation. I have a Car class annotated with @ConditionalOnProperty and @Component. Here is the relevant part of my code:
Spring/Java multiple shared modules for different databases
I’m implementing a software based on the micro-service architecture using Spring/Java. Each micro-service connects to either a PostgreSQL or a MongoDB database. Is it standard practice to have a shared module that contains database-agnostic components (e.g. entity classes, models, and common repository/service interfaces used by both databases) and then have two other shared modules (one for Postgres and the other for MongoDB) importing the first shared module and implement database-specific implementation of those common components?
Use `handleExceptionInternal` or return a ResponseEntity directly in ExceptionHandler?
We have the following code in our codebase (so that exceptions are logged).
unresolved question in spring boot which i seen simultaneously
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2024-06-27 15:34:33.958 ERROR 3364 — [ restartedMain] o.s.boot.SpringApplication : Application run failed
How to use a bean inside BeanFactoryPostProcessor
I have a Spring application with one specific need: I have to create at runtime beans depending on values that I can get only using another bean.
Let me explain it quickly, I have a bean that handles configuration (basically it will retrieve parameters from an external api), and depending on the configuration retrieved I want to generate beans inside a BeanFactoryPostProcessor.
Are these JUnit test methods correctly written in my Spring Boot application?
I am developing a Spring Boot application and have written some JUnit test methods to test my StudentCrud class. I would like to know if these methods are correctly written and follow best practices. Here is the code:
Muti-tenant Webapp Setup Defaults and Configurations
I have a multi tenant webapp. When a new tenant is created there is a bunch of defaults and configurations that need to be created in the DB for the new tenant, so of these inserts are related to each other and must happen in a specific order so I can get the ID of the related item. Here is an short version of what needs to happen
Spring Framework jar file download without JFrog
How to download spring JarFile without JFog as I can’t download spring framework jar files. The website redirecting me to the login page. JFog page prompts me to enter username and password without a new registration option.