Skip to main content
0 votes
0 answers
44 views

I am dealing with a rather complicated spring boot project. There is a strange issue, that a bean defined in a parent @configuration file is seemingly not instantiated IF a descendant @Configuration ...
riskop's user avatar
  • 1,839
0 votes
1 answer
46 views

I have a project which has 2 modules A and B. Module A depends on module B. (Maven compile and test dependency). Module A and module B have the same package structure and names i.e module A/src/main/...
Harsha Limaye's user avatar
0 votes
1 answer
95 views

I created an Java Spring library to audit and log execution times during the execution of my application. I deployed it on SonaType and load it as a dependency in a demo project. The properties of my ...
Speedkillsx's user avatar
1 vote
1 answer
254 views

I have created my own library and it has some code like this package com.example.demo.service; @Slf4j @Service @RequiredArgsConstructor public final class MyCustomService { ... } package com.example....
theprogrammer's user avatar
1 vote
1 answer
107 views

I am learning Spring, and following an example on YouTube about Annotations. When I try to use component-scan in the spring.xml file, I get this error message: Context namespace element 'component-...
Rutwick Gangurde's user avatar
0 votes
1 answer
31 views

We have created a new Spring Boot service. As part of it we would like to improve our general testing habits by utilizing test slices more effectively (and not loading in the whole context). We are ...
boostd's user avatar
  • 1
1 vote
0 answers
102 views

I am developing a service by combining Kotlin, Spring Boot, multi-module, and hexagonal architecture. While implementing the login logic, I encountered the following error: *************************** ...
ani's user avatar
  • 11
0 votes
1 answer
92 views

Above is codes in main.kolitn.~~ package com.example.demo // in main folder @SpringBootApplication class DemoApplication fun main(args: Array<String>) { runApplication<DemoApplication&...
rura6502's user avatar
  • 385
1 vote
0 answers
46 views

We have a spring based simple library where we added some new implementation in a new dedicated package. Sharing the main configuration from class that package @Configuration public class ...
SRJ's user avatar
  • 2,956
1 vote
0 answers
146 views

I have a @SpringBootTest that use a @Configuration class with @ComponentScan: @SpringBootTest(classes = BaseTest.Conf.class) public class SocGenTest extends BaseTest { And the configuration class: ...
selalerer's user avatar
  • 3,972
0 votes
0 answers
94 views

This is my project package structure. org.myApp MainApplication.java org.myApp.controller org.myApp.repositories org.myApp.utils I have a @SpringBootApplication placed in ...
Gestalt's user avatar
  • 187
0 votes
1 answer
3k views

I created a spring boot application(3.0.1). Then I connected the Postgres database and executed it. The application is up on server 8080 smoothly. then I added below-mentioned annotations. @...
Nimasha Madhushani's user avatar
0 votes
1 answer
602 views

Spring Boot here. I have dozens and dozens of classes that are all subclass/implementations of the same interface: public interface AnimalService { void eat(); // etc. } @Component public ...
hotmeatballsoup's user avatar
1 vote
1 answer
952 views

Suppose I have a jar with a Spring Component called MyComponent. This jar is a Spring Boot "autoconfigured" jar, meaning that it has a Configuration class (annotated with @Configuration), ...
Mark's user avatar
  • 5,722
0 votes
0 answers
471 views

Context I know there are a lot of posts regarding the comparison between these two. All of them just focus on @Import works on single Config file while @ComponenentScan will scan all config, bean, ...
Stan's user avatar
  • 890

15 30 50 per page
1
2 3 4 5
9