Questions tagged as 'spring-boot'

1
answer

Pagination springBoot

I'm new to Spring and web development and I'm having trouble paging a select, this is the method that does the search: public static Page getAllPeople(Connection connection, Pageable pageable) { ArrayList<peopleDto> peopleList = new Arra...
asked by 06.07.2018 / 13:44
0
answers

Json, Hibernate, Spring boot

I'm having 2 situations that should do the same thing but do not: package com.example.demo.entity; import com.fasterxml.jackson.annotation.JsonIdentityInfo; import com.fasterxml.jackson.annotation.ObjectIdGenerators; import java.util.ArrayLis...
asked by 01.06.2018 / 21:08
0
answers

Problem with Spring Tools Suite

I'm starting my studies with Spring and downloaded Spring Tool Suite version 3.9.4. to develop web java applications. I had previously installed the JDK version 8. I am using Ubuntu 18.04. Given this information, let's get down to the problem:...
asked by 10.05.2018 / 17:35
1
answer

Delete Oracle - Api Web

I'm trying to make this springboot code, turn a code into WebApi @RequestMapping("/deletarEvento") public String deletarEvento(long codigo) { Evento evento = er.findByCodigo(codigo); er.delete(evento); return "redir...
asked by 26.05.2018 / 19:19
1
answer

How to configure the Auditor using Spring Boot 2.0.2

Here is a class I used with the spring framework version 4.3.4.RELEASE (I still did not use the spring boot) and it worked: import org.springframework.data.domain.AuditorAware; import org.springframework.security.core.Authentication; im...
asked by 23.05.2018 / 19:02
1
answer

JPQL Not recognizing the parameter

I need to perform a query using JPQL or Spring-date keyword method. The problem is that the parameter entered in the query is being ignored, I still can not identify the cause of it. As the findByDescricão method is ignoring the parameter (de...
asked by 24.04.2018 / 10:35
0
answers

How to use spring security isEnabled

I was wondering if I'm using the isEnabled method of spring security correctly. For in my system, every user has a list of profiles. If the admin removes all their profiles and the user attempts to log in with that account without a profile an e...
asked by 24.04.2018 / 16:16
1
answer

Error accessing route released with Spring boot

Good afternoon I have a problem in the release of routes for my application made with Spring boot. The problem is that the main route "/ home" requests the JWT token to access it, but it is configured to allow any kind of request from any user,...
asked by 13.06.2018 / 18:52
0
answers

How to use Oauth in the application.properties file?

I had an application.yml file using Oauth as follows: oauth: enabled: true all-in-one: true But now I need to use the application.properties file and the structure is different. I thought it was just like this: oauth.enabled= true...
asked by 28.03.2018 / 18:52
0
answers

Spring Boot + Hibernate + Google Cloud Sql + App Engine

I'm having trouble setting up the connection in my application with Google Cloud Sql (using the technologies highlighted in the title). I would like to be able to allow Spring to be responsible for DataSource, EntityManagerFactory, and Transacti...
asked by 24.03.2018 / 06:14