Questions tagged as 'spring-boot'

0
answers

How to use roles in Spring Security without burning them in code?

One doubt, I am using Spring boot and Spring Security but if I want to assign roles to my users I have to write the following note in each microservice: @PreAuthorize("hasAuthority('ADMIN')") I've also seen it in the WebConfig but it's a bi...
asked by 23.07.2018 / 19:56
0
answers

org.springframework.web.client.ResourceAccessException Internal Server Error

While trying to call a rest api from c # from Spring Boot I have been having the error shown: The call to the web service rest of Spring Boot is successful. The fault is given in the line indicated: Has anyone any reco...
asked by 24.07.2018 / 01:58
0
answers

Send SpringBoot Excell to Angular2

I have created an excell in SpringBoot correctly (I can see it on the desktop) and I have to send it to Angular2, the problem is that it gives me errors when assigning the created file to the one I have to send. @RequestMapping(method = Reques...
asked by 19.07.2018 / 10:14
0
answers

Consume service rest of c # from Spring Boot

I need an example or at least recommendations on how to call rest apis de c # using Spring Boot. For example: This is the C # method to which I intend to make the call:     
asked by 19.07.2018 / 00:46
0
answers

Remove project IDE STS

How can I remove the projects that I have in the STS IDE to start working on a new one but that I will not lose the project. Every time I create a new project I have to create a new WorkSpace? What is the proper way to name the WorkSpace?...
asked by 10.07.2018 / 23:47
0
answers

Because I have this error in Spring

I'm new to Spring, I'm trying to deploy a Spring app in glassfish but I have not been able to because I always get this error. I know Catalina is from Tomcat but I do not understand why she names it, I want to use Glassfish, I do not un...
asked by 27.06.2018 / 08:27
0
answers

hello, I used spring boot generating maven project with java and spring boot 2.0.3

I have used spring boot generating maven project with java and spring boot 2.0.3    Failed to execute goal   org.apache.maven.plugins: maven-surefire-plugin: 2.21.0: test   (default-test) on project Does anyone know this error? My pom.xml...
asked by 27.06.2018 / 13:14
0
answers

How to add custom properties to the JWT Sprint Java payload

Using Spring OAuth2. I implemented an authorization and a resource server together with a certain web security configuration. Now I want to edit the part of the claims (properties of the token) and add custom properties, for example, email and r...
asked by 14.06.2018 / 16:55
2
answers

Error when deploying spring boot

I am new to spring boot, create a basic example with no connection to BD, I only have the dependency spring-boot-starter-web and spring-boot-starter My main class: package com.sinbugs.contacts; import org.springframework.boot.SpringApplica...
asked by 31.05.2018 / 15:29
1
answer

Error Connection spring boot with database db2

Good afternoon friends I am trying to connect a spring boot application with db2 but I get an error that is the following: Caused by: org.hibernate.exception.GenericJDBCException: Unable to open JDBC Connection for DDL execution at org...
asked by 31.05.2018 / 21:53