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
0answers
8 views
Spring Security Reauthentication with Persistent Logins
I am using Grails Spring Security Core with Persistent Logins. Thus, the login information of a user are stored in my database. My problem is the following case:
A user is logged in and his username ...
0
votes
0answers
21 views
Using @Value annotation
I have 2 property files a.properties and b.properties
I've added the to application context as:
<context:property-placeholder location="classpath:a.properties" />
...
0
votes
0answers
2 views
Spring-data-mongo: MongoRepository not being wired unless I add @Component annotation
I am having a little weird behavior with my spring-data-mongo where my repository package is not being scanned by the <mongo:repositories/> tag. I am using spring 3.2.3.RELEASE with ...
0
votes
0answers
11 views
How to create request scoped web service port?
I have Spring MVC based web application that calls web service. Web service requires http based authentication for every call.I hold web Service Proxy configuration in applicationContext.xml:
...
0
votes
0answers
12 views
Import and edit excel file in browser
I want to improt an excel file from desktop in the browser and then want to edit that excel in the browser and then save.
Also by clicking on export save that file on desktop.
Here i want to use ...
0
votes
1answer
23 views
Testing dao with junit in Spring MVC project
I've just started my journey with Spring, so I'm a newbie.
I'm trying to write tests to DAO.
When I run tests the stack trace returns:
Caused by: ...
0
votes
0answers
12 views
Tomcat 7.0 won't show Web Application in browser Windos
I am building an application that uses Spring+MyBatis+JSP in Eclipse. Its a very basic application. The program complies without any errors or warnings. When I click on Run on a Server in the project ...
0
votes
1answer
19 views
Understanding how nested Spring @Transactional works
I'm porting an EJB application to Spring and I'm facing some issues.
The application is running in standalone (that's why we choose spring) with eclipselink.
In this application I need to create an ...
1
vote
0answers
13 views
How to map dynamic url http://127.0.0.1:8080/prj/noticeOpen/2 in Spring MVC controller
Hi I am having hard time with following url:
<a href="/noticeOpen/2">dynamicLink</a>
to map with following controller method:
@RequestMapping(value="/noticeOpen/{quesId}")
public ...
0
votes
0answers
8 views
DbUnit check autogenerating id
I need to execute integration tests using DbUnit. I have created to datasets (before and after test) and compare them using @DatabaseSetup and @ExpectedDatabase annotations. During test one new ...
0
votes
0answers
13 views
Hibernate reads stale data even after update
I've one table having a foreign key relationship with itself.
I wanted to delete one of the row (Row1), which was referred by another row (Row2).
I've updated the foreign key column of Row2 before ...
0
votes
1answer
13 views
Spring configuration loading order
There is a maven-project which makes .ear file which contains a .war and .jar's. All these modules use Spring configuration files which are loaded with ContextLoaderListener.
<context-param>
...
0
votes
1answer
13 views
Configuring Jackson's ObjectMapper through Grail's bean DSL
I need a shared instance of ObjectMapper in grails, so I think the most standard way to do it is through beans DSL.
I tried something like (with many variations, like using delegate keyword) in ...
0
votes
2answers
35 views
Java downcasting with reflection
I hava a model in Java 1.6 similar to this example:
public class Animal {
public String color;
}
public class Dog extends Animal {
public Float height;
}
public class Bird extends Animal {
...
0
votes
1answer
8 views
Rest Template Spring Android PUT with Raw content type
I am trying to fix an issue with my RestTemplate PUT request. Basically, the server expects data(an object) to be put in "Raw" content-type but as xml stream.
I tried many combinations(of converter, ...