Questions tagged as 'spring'

1
answer

org.hibernate.LazyInitializationException: could not initialize proxy - not Session Solved

if I have a class "City" and a "Person" each with its attributes but Hibernate in the class "Person" instead of int IdCity works with < strong> City getCity in the get and set and while adding an attribute of type Set Person > Person...
asked by 14.02.2018 / 23:17
1
answer

Configure ViewResolver with Spring4

Good morning everyone. I am developing an application with Spring4 and Maven in Java. And I want to add an option to export the data of a table to an excel sheet, using Apache POI. The problem is that I do not recognize well the mapping...
asked by 15.11.2017 / 12:45
3
answers

Is it necessary to do all the mapping of all the tables with hibernate?

Good morning everyone, I have been reviewing a Spring + Hibernate application and as I see there are many tables that are not mapped or that do not have an entity defined in Java. I have also seen that many of them do not even have the relati...
asked by 05.10.2017 / 00:18
1
answer

Problem when sending and receiving data

I am trying to perform two processes using bean, my problem is that I can not find the way these processes are carried out continuously. The first process is to send an object and the second process is the response of it. @Component public cla...
asked by 06.06.2017 / 12:46
1
answer

Problem with Spring and Maven Project

Good morning everyone, I have a problem with a project of some Spring dependencies with Maven, what happens is that I download the project of a repository and some errors that I do not know, the errors are:    Can not find the tag library des...
asked by 10.04.2017 / 18:54
1
answer

ApplicationEventPublisher event that does?

The event: @Autowired private ApplicationEventPublisher publisher; send: eventPublisher.publish(new CreateParticipantEvent(conversation, participant)); Do you send notifications to everyone? How does it work?     
asked by 08.05.2017 / 23:23
1
answer

Export data with ExtJS in Excel file

I am trying to export one or many records from a panel to an Excel template. Today I can only export a selected record but I want to improve this part. I have tried several possibilities but either print only one record or print the entire panel...
asked by 21.03.2017 / 17:17
2
answers

Error with one many relations RestFul spring hibernate

Hello, how are you? I am putting together a small api rest ful project and using a single table without relationships works well, now if I add more tables and relationships, the json is missing. Consiguration @Configuration @ComponentScan(base...
asked by 03.03.2017 / 18:41
1
answer

Problem when including JavaMail in the Netbean

Download the JavaMail library and include it in my project first by creating it in the Netbeans and then adding it to the project, but when I am going to create the mail sending function it does not recognize some libraries. These are what Netbe...
asked by 31.03.2017 / 22:39
1
answer

Stream error when invoking a REST service in Spring MVC with two javascript objects

Greetings estoyr trying to pass as parameter two JSON objects to a REST method that is in a rest API in Spring MVC , I'm using a service type factory in AngularJS to make the call to the method. The server responds with an error...
asked by 31.05.2016 / 21:23