skip to Main Content

Mysql – Springboot not creating database tables

i created my entity in springboot import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Table; @Table(name="users") @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String username; private String email; } i setted the database configuration in…

VIEW QUESTION

Amazon web services – Problem to deploy simplest Spring Cloud Function application on AWS Lambda using docker image

I having a problem deploying the simplest Spring Cloud Function application to AWS Lambda using a docker image. @SpringBootApplication public class GraalvmFuncExampleApplication { public static void main(String[] args) { SpringApplication.run(GraalvmFuncExampleApplication.class, args); } @Bean public Function<Mono<MyRequest>, Mono<MyResponse>> transform() { return req…

VIEW QUESTION

Telegram – @Value does not receives value

I try to start telegram bot, but when I start the application I get this: org.telegram.telegrambots.meta.exceptions.TelegramApiException: Bot token and username can't be empty I want to set this velues using org.springframework.beans.factory.annotation.Value but it doesn't work pom.xml: <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>3.1.2</version>…

VIEW QUESTION

Failing to communicate between two Docker containers via Rest API using Java Spring Boot

I have two Java Spring Boot applications: On port 8080: @SpringBootApplication @RestController public class LogonPageApplication { private static final String PROCESS_STRING_URL = "http://localhost:8081/processString"; public static void main(String[] args) { SpringApplication.run(LogonPageApplication.class, args); } @GetMapping("/send") public String test() { String responseBody =…

VIEW QUESTION
Back To Top
Search