Questions tagged as 'spring-boot'

3
answers

Call database function that receives a list as parameter

People like I do the following ... involves database (Postgres SQL) and JPA, I want to create a database function that gets a list of ids as parameter and make a query cm in the WHERE IN (. ..). In JPA how do I call this function, and how do I p...
asked by 20.10.2018 / 15:21
1
answer

Querying in a List (IN) - Predicate and Specification - JPA CriteriaBuilder

Hello, I have to create a dynamic query based on the following scenario in a RESTFUL application using Springboot and JPA (I'm using JpaSpecificationExecutor): I have two entity classes (Entity), the first is that of products: Produto Long i...
asked by 06.05.2018 / 20:23
1
answer

Visitors Counter Using Spring Boot

I have a Mangos project using Spring Boot with AngularJs and, I wanted to implement a counter of visualizations, accessions, for each sleeve viewed. So I could sort the most Viewed Category Mangas per Week, Monthly and Total Views, same as Mang...
asked by 12.09.2018 / 21:54
1
answer

Configuring Multiple Databases in Spring Boot

My application has a connection to a remote database (SQLServer), but I would like to perform a small duplication of certain less volatile data in a local and embedded (H2) database to gain in performance. My setup today is that of a single bank...
asked by 03.04.2018 / 15:10
1
answer

Problems in setting up CORS Spring Boot!

This is the error message you are giving; I'mhavingahardtimemakingmyFrontEndAPIhavepermissiontoaccessmyBack-EndAPIwhichisaSpringBootproject,I'msuremyproblemisnotmyFron-EndAPI,theproblemisintheconfigurationoftheCORSregardingaccesspermission.I...
asked by 11.03.2018 / 09:46
1
answer

Working with the application.properties file

See my application..properties file: spring.jpa.database=POSTGRESQL spring.datasource.platform=postgres spring.jpa.show-sql=true spring.jpa.hibernate.ddl-auto=create-drop spring.database.driverClassName=org.postgresql.Driver spring....
asked by 14.11.2017 / 17:32
1
answer

Login Spring Boot + Spring Secutrity + Angular

What is the structure used for the combination Spring Boot, Spring Security and Angular Js to manage the login and the Spring application will be in rest. Will the login controller be in rest format too or will it be in the ModelAndView frame...
asked by 18.07.2017 / 21:40
1
answer

What is the best place to make a property file available? [closed]

It has a Java project in Spring Boot that connects to the database. Consequently I have an application.yml properties file with the database connection configuration. The configuration of database is as below with the user and passwor...
asked by 29.06.2017 / 15:19
2
answers

set environment variable in application.properties

I have a project in Spring boot where in application.properties I wanted to set the file location that I'm going to process. I do not know the best way to do it. I wanted to have the parameterizable directory in an environment variable in the sy...
asked by 04.01.2017 / 12:33
1
answer

Spring Boot application not initializing in Heroku

I have the following open source application: people-on-map-site . And I have an account with Heroku and this project integrated with the GitHub repository. However, when Deploy appears, these messages appear in the logs: The build is...
asked by 10.12.2016 / 21:15