Skip to content
Advertisement

Tag: spring-boot

Mapping a Star Schema with Spring Boot JPA

I’m struggling to identify the right annotations to use to map a star schema with Spring Boot JPA. Let’s consider 3 tables: DIM_One (1)——–(1..n) FACT (1..n) ———— (1) DIM_Two DIM_One and DIM_Two both have an id that is their primary key. FACT’s primary key is the combination of (DIM_One_pk, DIM_Two_pk) For now, the annotations in my DIM tables are similar

Why deploying a spring boot (Java) application to Googles App Engine gives error for both Flexible and Standard environment?

It is a Spring boot Java application using Maven. I am using Intelij for developement. I am availing $300 as I got by default from GCP and using it. For a flexible environment, the app.yaml configuration is Error as below: The requested amount of instances has exceeded GCE’s default quota When I using a Standard enviorment The Error showing as

Is there a way in which we can check for presence of data in application.properties file in Spring Boot Project before the tomcat server starts?

I am writing a Spring Boot project to Run a Cloud Config Server and 3 Micro-services to run as a Client. I would want to check availability of all properties in application.properties or yaml file before starting the tomcat server. We already have a similar one for Database Startup Validation, but here I am trying to achieve the same for

I have an error but dependencies include in gradle root and gradle module config, why?

I have root config gradle.build and have build.gradle in module After download dependencies and add in models annotations like @Entity, @Table @Id and etc. i have an error: cannot find symbol @Entity ^ symbol: class Entity But i have spring-boot-starter-jpa in dependencies, i don’t know why in module i can’t use dependencies. Answer With dependencyManagement you only manage dependencies like

The dreaded Java SpringBoot app not connecting to MySQL with Docker-compose java.net.ConnectException: Connection refused

I have been struggling with the following issue – the dreaded Java SpringBoot app not connecting to MySQL with docker compose exceptions: com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure JDBCConnectionException: Unable to open JDBC Connection for DDL execution java.net.ConnectException: Connection refused The app works fine on its own, but it can’t seem to connect to mysql once I get it in Docker. I

Issues in serializing API request argument in Spring boot application

I have written one aspect to serialize the request arguments for APIs in Spring boot application, in DB as follows: The above code snippet is failing if we get HttpServletRequest/ByteStream as a request argument. For example, for byte stream I am getting following exceptions: For the request type of HttpServletRequest, I am getting StackOverflow error. Actually, I would like to

Advertisement