Questions tagged as 'spring'

2
answers

Integration between Spring MVC and JPA

I'm trying to integrate Spring with JPA but so far I have not had success in this configuration. One of the doubts is if I can configure the bank through spring-context.xml . Here is the error that I am trying to solve at the...
asked by 27.10.2016 / 19:22
1
answer

Authentication with Spring Security

Hello, I'm doing a project using the Spring Framework, and I need to do a very simple authentication, using users created in the same user table (without any integration with social networks). But I do not know how to do it, I'm using Spring...
asked by 29.08.2016 / 18:59
1
answer

The import org.springframework.web.bind.annotation.CrossOrigin can not be resolved

I'm not able to import the annotation @CrossOrigin . Ide does not find the required package even though all other annotations are working normally. The error that occurs is this:    The import org.springframework.web.bind.annotation.C...
asked by 08.02.2017 / 23:33
1
answer

Methods for testing Spring application are not found

I'm following the following article: Introduction To Spring MVC Test Framework I have the following code: this.mockMvc.perform(get("/product/1")) .andExpect(status().isOk(). .alwaysExpect(content().contentType("application/json;charset=UT...
asked by 18.02.2016 / 12:16
2
answers

Paging with Spring Framework

I have a question, need to make a paging when I return all the records in a table, I do not have much experience with Spring and I would like to know how to do it, do I need to override findAll ()? Or in the controller's own method already it is...
asked by 09.06.2016 / 13:46
1
answer

Update column and table definitions with Hibernate

Good afternoon. I would like to know and confirm if you have any way to update table and column definitions in each schema using Hibernate. For now, what I've seen so far is that Hibernate only creates tables and columns, but does not dele...
asked by 06.03.2015 / 18:10
1
answer

How to test a DAO (using Spring and JPA) outside a container?

I'm developing an application with JPA 2, Spring and JSF 2 running in WildFly 8.0.0. I have already developed some previous applications following the same specification but never tested properly using jUnit. Now, I would like to change that and...
asked by 31.03.2014 / 20:26
1
answer

No serializer found for class sun.security.util.ObjectIdentifier

I have the following problem: Error: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class sun.security.util.ObjectIdentifier and no properties discovered to create BeanSerializer (to avoid except...
asked by 26.07.2018 / 03:11
3
answers

What is the best strategy for loading and persisting large volumes of data with Spring?

I need to perform a function in a Spring and Hibernate project, to which I must update some information from all records in my table. The idea is to load the records into the application, process the data based on some values from those records,...
asked by 03.07.2018 / 14:56
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