0
votes
1answer
15 views
Best development environment using Spring MVC, JRebel for Java web app?
I looking for the current best combination of tools for developing a Java web app using Spring MVC (and Spring) and JRebel. Which IDE (which version, which plugins?), which other build tools (maven, ...
0
votes
0answers
10 views
Spring data mongodb pageable
I´m trying to make it works pagination with spring data mongodb, but I found that the first imt eworks, but if I increase the page number in the pagination return me always 0 records.
Here´s my code:
...
1
vote
0answers
21 views
Spring,Upload file into Server Root directory?
In my Spring Application, i have upload option,
When file upload to local directory, it is working fine and below working code.
String orginalName = file.getOriginalFilename();
String filePath = ...
-3
votes
0answers
44 views
Command line error in Maven project with spring framework
Junit is running fine but the import statements in the class file are not responding in the command line and here is the trace:
Exception in thread "main" java.lang.NoClassDefFoundError: ...
0
votes
3answers
64 views
is it possible to get formatted date object in Java
SimpleDateFormat formatter=
new SimpleDateFormat("yyyy MMM dd");
String dateNow = formatter.format(rs.getDate("ExpirationDate").getTime());
System.out.println("Date in String: ...
0
votes
1answer
13 views
Keep object in the view after refreshing when using RedirectAttributes.addFlashAttribute
Thank for Spring 3.1, I can make Post/Redirect/Get happen using RedirectAttributes.addFlashAttribute, But it seem like has small issue
here is the method that persists form object, then redirect to ...
0
votes
0answers
11 views
CXF Interceptor annotation works, spring configuration does not
I have implemented a jax-ws service and I'm trying to use a custom interceptor:
TestInterceptor.java
public class TestInterceptor extends AbstractPhaseInterceptor<Message> {
public ...
0
votes
0answers
14 views
Spring Framework using SQL Server 2008 and sqljdbc4.jar
I'm building a web appa nd using Srping Framework. I did the tutorial: https://sites.google.com/site/springmvcnetbeans/step-by-step/ and thought I would easily be able to convert it to the SQL db ...
0
votes
1answer
20 views
How to find out Spring default bean Registrations
We have the following XML elements.
<mvc:annotation-driven />
<context:component-scan />
<context:annotation-config/>
etc,
Is there a way to find out (from eclipse or any ...
0
votes
0answers
11 views
Spring security oauth2 - getting custom data from OAuth2 principal
I have a site that uses Spring security and has users (username & password) and standard form authentication. I allow users to generate a client Id and client secret linked to their account for ...
0
votes
0answers
28 views
Is it possible to use a single Spring DataSource with multiple TransactionManagers?
I'm using Spring. I have a bunch of services which are being used by a single desktop application. Since this is not a distributed system, all the services are part of the application itself, they are ...
2
votes
1answer
63 views
Spring: How do I inject ENUM in Spring configuration with generics?
I have a class like this :
public class CheckSetFilter<E extends Enum<E>>
{
public CheckSetFilter(CheckSetManager<E> pCheckSetManager, E pCheckSetId)
}
I have this enum :
...
0
votes
0answers
17 views
how can I extend PropertyPlaceholderConfigurer in Camel and be aware of the CamelContext?
We want to make our config parameters, which are used in property placeholders, to be configurable. These configs are initially loaded from properties files, but then stored in a db where they can be ...
0
votes
0answers
13 views
My custom accessor is never used and only the field default value is used by hibernate validator instead
I have the following code inside a javabean:
@AssertTrue
private boolean addressReferenceValid;
public boolean isAddressReferenceValid() {
if (addressType.equals(AddressType.ON_THE_FLY_ADDRESS) ...
0
votes
1answer
30 views
How can I make Spring-MVC output HTML
How can I make Spring-MVC output HTML. Right now I have Spring-MVC filling in data in a List like the one below:
<ul>
<li><c:out value="${memberrequest.name}"/></li>
...