Skip to main content

Questions tagged [spring]

The Spring Framework is an open-source framework for application development on the Java platform. At its core is rich support for component-based architectures, and it currently has over twenty highly integrated modules. For Spring Boot related questions, also include the tag [spring-boot].

0 votes
0 answers
2 views

how to import config file in spring that outside of classpath

i have following repository structure for my spring config server: repository structure for config files and i want to import config named "jwt_secrets.properties" in multiple services, so i'...
Voltjunkie's user avatar
0 votes
0 answers
6 views

SpEL expression involving multiple beans

The beans are defined thus: <bean id="defaultSourceMetaData" class="com.example.metadata.SourceMetaData"> <constructor-arg type="java.lang.String" ...
Mikhail T.'s user avatar
  • 3,428
0 votes
0 answers
10 views

When i am. trying to run spring intializr using ./mvnw spring-boot:run. it showing the error

[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:3.3.2:run (default-cli) on project initializr: Unable to find a suitable main class, please add a 'mainClass' property -...
jayaprakash dash's user avatar
0 votes
0 answers
6 views

Session using springboot

Category page show the msg whenever category is added . i want that whenever user refresh the page it will removed from the webpage(msg). @Service public class CommonServiceImpl implements ...
Khushi Saraswat's user avatar
0 votes
0 answers
22 views

Does my design violate the Liskov Substitution Principle?

I'm working on a Spring Boot application with the following structure for sending messages public interface MessageService { void send(String message); } @Component("SendEmailService") ...
Tom's user avatar
  • 87
0 votes
1 answer
19 views

Kafka offset incrementing after 10 attempts in Spring boot

We have spring boot application to consume the messages from Kafka and put into DB. We dont want any error handling to be performed in the application if any exception occurs (like DB down etc) ...
Ravi's user avatar
  • 53
0 votes
1 answer
18 views

File upload into ClassPathResource - IOException

i want to upload images added by admin(add category) into folder in project directory but i try to do so with the help of controller but it throws Unhandled exception type IOException @PostMapping(&...
Khushi Saraswat's user avatar
0 votes
0 answers
10 views

Why is a Thread-Scoped Bean Injected Instead of a Default-Scoped Bean in Spring Boot?

I recently made a change to my Spring Boot project. I initially had a bean without a specific scope. Due to an implementation that uses threads and the occurrence of concurrency issues, I needed to ...
WinEnzo's user avatar
0 votes
1 answer
14 views

Swagger UI doos not show Authenticate button in Spring Boot

I am using Swagger UI to test apis for Spring Boot on mac. However, the authenticate button does not show up so that I can put JWT token for authentication. How can I solve this issue? I searched the ...
Murad Aghamirzayev's user avatar
-1 votes
0 answers
20 views

Why SftpSession from spring-integration-sftp (Spring Boot 3.3.2 ) not able to find folder with relative path over SFTP?

I am migrating a spring boot application from V2.7.18 to V3.3.2 which connects to remote server to perform SFTP operations. The application is able to make SFTP connection post migration, but it is ...
Sarvesh H's user avatar
0 votes
1 answer
43 views

Invalid bean definition is defined in class path resource as there is already a Generic bean

I am trying to convert a spring application to springboot application. The application runs fine when I run it using the intellij GUI, but if i use the terminal and try to run it by java -cp command ...
Moneet's user avatar
  • 13
-1 votes
0 answers
63 views

Spring for a library [closed]

I have written a library to provide a Java API for a Rest service with all the fun stuff like RestTemplate, RestTemplateRequestCustomizer, ResponseErrorHandler, etc. I now want to distribute the ...
kfaria's user avatar
  • 307
0 votes
0 answers
18 views

For virtual threads, how to control the number of platform threads via Spring

I need to use virtual threads through SimpleAsyncTaskExecutor and I have the following three questions: How do I control the number of platform threads used to dispatch the virtual threads? By ...
severous's user avatar
-1 votes
0 answers
11 views

How to Implement Configurable Grading Grids in a PFE Dashboard

I'm working on a project for managing grades and evaluation grids for students in PFE internships. The goal is to allow the director of stage services to modify the evaluation grids and grading ...
newmembreCode's user avatar
0 votes
0 answers
15 views

Spring Shell not running interactive mode windows 11 - Unable to create a system terminal, creating a dumb terminal

I'have created simple SpringShell app (java 21 and maven) using spring initializr and created class HelloCommand.java. While running app in IntelliJ IDEA I'm occurring a warning Unable to create a ...
milosz_amg's user avatar

15 30 50 per page
1
2 3 4 5
14125