skip to Main Content

Why isn't KenisisClient.putRecord() not accepting a valid PutRecordRequest – Amazon Web Sevices

Here is my code KinesisClient kinesisClient = KinesisClient.builder().build(); PutRecordRequest putRecordRequest = new PutRecordRequest(); putRecordRequest.setStreamName("stream-name"); putRecordRequest.setPartitionKey("SomeString-" + UUID.randomUUID()); putRecordRequest.setData(ByteBuffer.wrap(data)); PutRecordResponse putRecordResponse = kinesisClient.putRecord(putRecordRequest); For some strange reason it's saying it can't resolve the putRecord(PutRecordRequest) method even though it's clearly there when…

VIEW QUESTION

In Java, Azure applicationinsights starter dependency not compatible with spring boot 3.x.x

I wanted to integrate application insights into my spring boot application**(v3.x.x)** and for that I have used below dependency in my build.gradle. implementation 'com.microsoft.azure:applicationinsights-spring-boot-starter:2.6.4' In my controller, I have injected TelemetryClient bean like: @RestController @RequestMapping("/") public class UserController { @Autowired…

VIEW QUESTION

Return Html page using RestController in Spring Boot

I am trying to get the HTML page that I created. This is the structure of my project: This is the "IndexController" class: @RestController @AllArgsConstructor @RequestMapping(path = "/webpage") public class IndexController { @GetMapping(path = {"mainpage"}) @ResponseBody public String index(){ return…

VIEW QUESTION

Dependency 'mysql:mysql-connector-java:' not found

Pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.10</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.example</groupId> <artifactId>demo</artifactId> <version>0.0.1-SNAPSHOT</version> <name>demo</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency>…

VIEW QUESTION
Back To Top
Search