The Spring Framework is an open source framework for application development on the Java platform. At its core is rich support for component based architectures, and it currently has over a dozen highly integrated modules.
0
votes
2answers
10 views
How to validate a REST update request using spring jdbcTemplate?
I have a simple database table users with 3 columns:
| id | username | nationality |
| 1 | John | American |
| 2 | Doe | English |
I want to issue an update via a POST request ...
0
votes
0answers
16 views
Hibernate: transactional insert and unit testing
I'm writing a unit test for a DAO call to insert a record into the DB using Hibernate.
It's transactional and I used @Transactional in that way:
@RunWith( SpringJUnit4ClassRunner.class )
...
0
votes
1answer
18 views
Grails app is reloading on css changes
I am developing a Grails app in Groovy/Grails Tool Suite. I start my server by simply running the vFabric tc Server that comes built in. Unfortunately, when I make css changes, the entire server ...
0
votes
0answers
5 views
not able to render view in Tile2 with spring
I my project I am using tile for view technology. .
every thing seems Ok
when I send a request it reaches a Controller then controller return a view name It is
able to find it in template.xml ...
0
votes
1answer
9 views
How do I add Freemarker support to a Spring MVC webapp? Dependency issue?
I'm trying to create a Spring MVC application using Freemarker and Java configuration.
I'm used to using JSPs, but thought I'd give Freemarker a spin in this project.
I've added Freemarker as a ...
0
votes
1answer
30 views
Strategy pattern with spring beans
Say I'm using spring, I have the following strategies...
Interface
public interface MealStrategy {
cook(Meat meat);
}
First strategy
@Component
public class BurgerStrategy implements
...
0
votes
0answers
6 views
Spring-ws with security UnsupportedCallbackException
In spring security for SpringWS I am using
<bean id="wsSecurityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor">
<property ...
0
votes
2answers
33 views
Spring autowiring scanning only test files
During unit tests with JUnit, Spring autowiring is only working for files in:
src/test/org/baudo
But not files in:
src/main/org/baudo
So when I test my DAO that autowires a sessionFactory ...
0
votes
1answer
10 views
@JoinColumn must be specified for each join column using the @JoinColumns
I am trying to implement many to many relationship with extra column, but gettig below error.
Could somebody explain why below error is occurring anf how to solve?
Internal Exception: Exception ...
1
vote
1answer
16 views
Spring MVC and JUnit: Failed to load ApplicationContext
In order to test my DAO and automatically autowire my objects, I created the following test class in JUnit:
@RunWith( SpringJUnit4ClassRunner.class )
...
0
votes
0answers
18 views
Define execution order in custom file filters
I am working on a Spring 3.1 MVC application in which a user can upload a file and apply some filters over the text. For example, one filter can delete special chars and other can recognize grammar ...
0
votes
1answer
11 views
Spring HibernateTemplate autocommit false
I need to fetch 1 lakh record from one table and insert into another table in batch manner.I am using Spring3 hibernate template for inserting.i need to commit only after every 100 records but ...
1
vote
0answers
14 views
Spring Hibernate integration with maven and mysql
I need to have a project with spring hibernate and mysql, the homepage works fine (it even gets data out from mysql and displays it) but when i click the add/edit or delete button i get a 404 error ...
0
votes
0answers
9 views
Unable to instantiate default tuplizer
I m very new to Hibernate & JSF. I have followed online tutorial http://www.mkyong.com/jsf2/jsf-2-0-spring-hibernate-integration-example/ but i m getting error as
Jul 13, 2013 12:52:18 PM ...
0
votes
1answer
48 views
how to pass multiple request parameters in Spring?
In my Spring Application i'm pass two request parameters to my business logic..
$.ajax({
url : "classes/addResult",
type:'POST',
data : ...