0
votes
1answer
13 views
Error in Hibernate NamedQuery
I'm sure this is something stupid, but I can't figure out why Hibernate is upset with my named query. Can someone please help me? Here's my query and the domain objects in reference, followed by the ...
0
votes
0answers
15 views
Move JAXRS Server Declaration to Code
I am working on a web service with spring and jaxrs. Here is my applicationContext
<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
...
0
votes
2answers
38 views
Spring PropertyPlaceholderConfigurer Issue to Load A Properties File
I have project.properties being copied by my maven based project in eclipse to the target/my-web-app-name/WEB-INF/classes/runtime. I see the file there but then when I run the web application on ...
0
votes
0answers
23 views
Spring form ModelAttribute field validation to avoid 400 Bad Request Error
I've got an ArticleFormModel containing data sent by normal html form which is injected by Spring using @ModelAttribute annotation, i.e.
@RequestMapping(value="edit", method=RequestMethod.POST)
...
0
votes
1answer
15 views
Cookie troubles with Spring MVC
I was trying to get cookie value using @Cookie. But then I get 400 error if cookie value is null. What's wrong?
This is my controller:
public String listContacts(Map<String, Object> map,
...
0
votes
0answers
9 views
How to Configure JAXRS and Spring With Annotations
I am working on a little Spring web service project. Here is an example route:
package com.example.api;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import ...
1
vote
2answers
43 views
Can I change the implementation class injected by spring in runtime?
I have a class has injected by spring on the applicationContext.xml and I need change that implementation without change the applicationContext.xml.
I heard about AOP "IntroductionInterceptor" but I ...
0
votes
1answer
42 views
How to obtain the current language in a controller?
Here is my locale configuration
<bean id="messageSource"
class="org.springframework.context.support.ReloadableResourceBundleMessageSource">
<property name="basename" ...
2
votes
1answer
46 views
How to know the Number of Core and RAM Required?
I have a Spring Application which is running on Apache Tomcat 7 and is fully providing REST based services. I have around 1 Million people who would be using it across the globe. My question is that ...
0
votes
2answers
27 views
jQuery+Spring remove from database
I have a project using Spring and i need to create admin page using jQuery. I have a table with all users and i have a button "delete". When i click it user should be deleted from the database. ...
0
votes
0answers
46 views
Hibernate @Valid and Spring MVC
Before asking here, I googled and search here a lot, find a usefull content, but I could not solve my problem.
I´m studing the use of Spring MVC and Hibernate Validator with i18n support. My problem ...
0
votes
1answer
11 views
Spring integration inbound-channel-adapter triggered at post construct?
Suppose I have this class:
public class MyClass {
public String myMethod() {
//...
}
}
What I want is when my application starts, to send the result that myMethod() returns to a ...
0
votes
2answers
45 views
Autowiring doesn't work in Spring
I'm trying to write web application using wicket + hibernate + spring. And like all guys I'd like to use @Autowired annotation. First of all, here is my applicationContext.xml:
<beans ...
-2
votes
0answers
21 views
How to i give search options in my spring application like google [on hold]
i have a application where the option is provided like the google for search.
like if the particular keyword is given than, i should get replies like google
so it should look into Internet and fetch ...
0
votes
1answer
21 views
jackson generating an unexpected “new” field
I'm using spring rest and jackson to generate json. For the class country
public class Country extends AbstractPersistable<Long> {
private String name;
private String code2;
...