Questions tagged as 'spring-boot'

1
answer

Two id in hibernate table

Is there a possibility of two fields being id in a hibernate table? I have two ids that need to be unique in pair on the table. But I do not know how to implement it.     
asked by 15.12.2017 / 00:25
1
answer

How to do a find with pagination and search term at the same time with Spring data?

Hello, my question is the following. I want to do a search by passing a PageRequest and an Object or some search terms and get a list back. For example: List getList (PageRequest page); In this case I want the search to return the records...
asked by 18.01.2018 / 04:44
1
answer

How do I return in json the foreign key in Spring Boot?

As you can see, he is returning cities without any problems at the following URL: http://localhost:8080/cidades , please note: Thisisadirectreturnfromthedatabasewithselect*fromcidade,canyouseeanydifference? Notethatinthestatus_codeattr...
asked by 02.02.2018 / 19:46
1
answer

Microservices with Springboot

I started developing an application using the microservices concept and I still have many doubts. I have repositories and their respective entities, the submissions of the requests work correctly however when I finish the application and start...
asked by 07.07.2015 / 21:24
3
answers

How to upload image using Spring Boot?

I'm learning to use Spring Boot and I need to create a field in the form that loads the image to be used. How do I map the directory and save to a particular project folder? Example: Through the form, the user will load the photo. In...
asked by 23.10.2018 / 04:30
1
answer

What happens internally in running a Spring Boot application?

Recently I've been studying Spring Boot, I wanted to know what happens internally when an application is started, because every project has a main class that is always annotated with @SpringBootApplication . What is the purpose of this not...
asked by 25.10.2018 / 15:43
1
answer

How to solve this Spring Boot problem?

I'm learning to use Spring Boot , following / adapting this official page tutorial , but whenever I try to run, these exceptions and errors appear: Error starting ApplicationContext. To display the conditions report re-run your applicat...
asked by 01.10.2018 / 02:28
1
answer

How effective is Spring Boot's effective message?

I need to implement a successful message that is shown via json, for when my message is returning like this below; Idonotknowhowtoimplementthismessage,Itrieditthatway;@PostMappingpublicResponseEntity<Employee>criar(@Valid@RequestBodyEm...
asked by 12.09.2018 / 12:58
1
answer

Request Post API Messenger with Spring Boot

I need to create a post method that returns this information to the Messenger API with Spring Boot, if anyone can give a light thanks. The example below is found in the Facebook Developers documentation curl -X POST -H "Content-Type: applic...
asked by 20.06.2018 / 07:08
2
answers

How to properly configure CORS in Spring Boot?

First I'll tell you what happens! I developed a simple Spring Boot project to show on screen a GRID having as Frond-End the Angle, the java API request is port 8080 and the Angular port is 4200, as each one makes different requests I have dec...
asked by 14.12.2017 / 10:05