<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
- <version>2.7.2</version>
+ <version>3.3.4</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<properties>
<java.version>17</java.version>
- <lombok.version>1.18.30</lombok.version>
</properties>
<dependencies>
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
+@ComponentScan(excludeFilters = @ComponentScan.Filter(RestController.class))
public class Application
{
public static void main(String[] args)
package de.juplo.kafka;
+import jakarta.validation.constraints.NotEmpty;
+import jakarta.validation.constraints.NotNull;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
-import javax.validation.constraints.NotEmpty;
-import javax.validation.constraints.NotNull;
@ConfigurationProperties(prefix = "producer")
@Slf4j
-@RequestMapping
-@ResponseBody
+@RestController
@RequiredArgsConstructor
public class ExampleProducer
{