Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
2k views

I am trying to return CSRF token from a REST controller with spring 4 with xml based configuration. I have tried this: @RestController public class Somecontroller{ @RequestMapping("/csrf") public ...
dabicho's user avatar
  • 393
0 votes
0 answers
61 views

In the configuration class I set the connexion caracteristics : @Configuration @ComponentScan("com.ambre.pta") @EnableTransactionManagement @PropertySources({ @PropertySource("classpath:fr/global....
pheromix's user avatar
  • 19.6k
7 votes
0 answers
773 views

I am using spring-data-rest in my application. I configured repositoryRest using configureRepositoryRestConfiguration I added the following two lines in this configuration config.exposeIdsFor(Person....
Achaius's user avatar
  • 6,144
1 vote
0 answers
169 views

This is a strange problem and I tried to debug it through the day with no effect. I have written a REST API in Spring 4 and it seems to be working fine. I've tested the links with postman, they work ...
user avatar
0 votes
0 answers
2k views

I am new to Spring, I am currently using Spring 4 Once the war is deployed into JCS-SaaS (cloud) I am getting belows error : [2016-11-08T12:50:06.686+00:00] [INCIDENT_ERROR] 1 [incident 22 ...
user2587669's user avatar
0 votes
0 answers
669 views

Only POST requests are not working. It works normally in Spring version 3.2.0 RELEASE but not in Spring version 4.3.3 RELEASE. I don't know why this it does not work. Please help me.. JSP <...
heesung's user avatar
1 vote
1 answer
1k views

I am trying to learn constructor injection using Spring 4.3. I am having class structure is stated below. @Component public class Student { private Address address; private City city; ...
Chinmaya's user avatar
  • 189
0 votes
3 answers
7k views

I set values to the session object in the method of a controller after success of login : @RequestMapping(value = "/", method = RequestMethod.POST) public ModelAndView processLogin(Model ...
pheromix's user avatar
  • 19.6k
5 votes
1 answer
5k views

I found a tuto to manage exceptions from this site. So here is my handler : @Controller @RequestMapping("/adminrole") public class AdminRole { ... @ExceptionHandler({org.hibernate....
pheromix's user avatar
  • 19.6k
3 votes
0 answers
1k views

Consider my following code. I am trying to get list of objects based on the generic responseType using spring-hateoas Traverson class public <T> ArrayList<T> getList(String path, ...
Achaius's user avatar
  • 6,144
0 votes
0 answers
1k views

I'm trying to upgrade a legacy application developed in spring 3.2.x and java 7, to spring 4.0.3 and java 8. I'm getting org.springframework.core.NestedIOException: ASM ClassReader failed to parse ...
Mitesh's user avatar
  • 467
0 votes
2 answers
673 views

I am getting the exception org.hibernate.MappingException: Unknown entity com.pro.entity.User I have seen similar posts but almost all of them provides solution to change @Entity annotation to javax....
sbajpai's user avatar
1 vote
0 answers
7k views

Please find the error below: Java version : 1.8.0_101 2016-10-19 17:17:56 DEBUG StandardServletEnvironment:110 - Adding [servletConfigInitParams] PropertySource with lowest search precedence 2016-...
Prakash's user avatar
  • 31
0 votes
2 answers
562 views

I have below set of interfaces and classes. Note the doSomething method. It has to check for the instance of the object before calling the interface method on it. I would like to avoid that, as it ...
Mubin's user avatar
  • 4,257
0 votes
1 answer
77 views

I created a project with Spring Tool Suite from subclipse. Here are files : pom.xml : <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="...
pheromix's user avatar
  • 19.6k
0 votes
1 answer
1k views

I have migrated Spring from 3.1 to 4.1.3 and Hibernate 3.2 to 4.3.9 As part of migration I have modified below import and code old import import org.springframework.orm.hibernate3.support....
Raj's user avatar
  • 2,493
2 votes
1 answer
4k views

I have followed instructions from spring-boot documentation and successfully deployed spring-boot as service in centos. All the following commands work sudo /etc/init.d/myapp start sudo /etc/init.d/...
brain storm's user avatar
  • 31.5k
0 votes
1 answer
64 views

I created a Spring legacy project from Spring Tool Suite, it is a Spring-MVC project. I deposited my project into a Linux Ubuntu server where there is SVN installed. Now my coworker wants to work on ...
pheromix's user avatar
  • 19.6k
1 vote
0 answers
1k views

I just upgraded a Spring application from version 3.2 to a 4.2.5 and tomcat8 with java8 build . application build and server startup was went fine, but when i hit the application URL i'm getting the ...
Vasanth's user avatar
  • 51
3 votes
1 answer
2k views

I created many controllers having each their requestmapping specified in order for them to be identified in the app : package com.ambre.hib.controller; @Controller @RequestMapping("/") public class ...
pheromix's user avatar
  • 19.6k
1 vote
0 answers
145 views

I am experiencing a weird error. My application is working on one machine but the same URL throws 404 on a different machine having same configuration. The technology suit I am using Spring4.1.1.6 ...
Rupendra's user avatar
  • 588
0 votes
1 answer
2k views

In my oracle database table there is a column of datatype raw. Now in my spring bean class I want to map this table. So what java datatype is the equivalent of the oracle raw datatype ?
pheromix's user avatar
  • 19.6k
1 vote
1 answer
4k views

I have a Spring REST service and sometimes when I request the REST service I get a HTTP 401. I am looking to investigate this issue, this is intermittent and does not happen at all times. (It is the ...
serah's user avatar
  • 2,177
1 vote
1 answer
11k views

I'm working with the book "Amuthan G - Spring MVC Beginner's Guide". Currently I'm trying to implement security using the next security-context.xml: <?xml version="1.0" encoding="UTF-8"?> <...
Alesto's user avatar
  • 689
2 votes
1 answer
130 views

I am quite new to Spring, so sorry if my question sounds silly. I am trying to add basic HTTP Auth to my Spring based REST API. I have been following quite a few tutorials and reference ...
jlengrand's user avatar
  • 12.9k
6 votes
2 answers
3k views

I cannot connect my spring boot application to IBM Informix database. I have added the informix data source in application.yml file. I am using spring 4. I get the following error. no writeable ...
kd0807's user avatar
  • 660
0 votes
2 answers
3k views

I have a entity class "classA" and a model class "ClassA1". ClassA is used to store the values in mysql database from server side and ClassA1 is used to convert a API response string into object which ...
Achaius's user avatar
  • 6,144
1 vote
0 answers
35 views

Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [com.dav.spring.domain.HelloWorldImpl] is defined at org.springframework....
Raju189's user avatar
  • 11
0 votes
2 answers
138 views

while working on spring mvc 4, how to find the jar for offline project like the jar Spring Security Config,spring-security-web for spring 4 ... etc as thet are not available with default package of ...
user avatar
0 votes
1 answer
31 views

I modified the log4j.xml : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration PUBLIC "-//APACHE//DTD LOG4J 1.2//EN" "log4j.dtd"> <log4j:configuration debug="true" ...
pheromix's user avatar
  • 19.6k
0 votes
1 answer
22 views

I have an entity having OneToMany relationship. After fetching the parent entity by below way: User has many educational degrees. @Transactional(propagation = Propagation.REQUIRED) -----------at ...
Subhajit's user avatar
  • 904
14 votes
2 answers
12k views

I'm trying to get Ehcache 3 working with Spring 4 without using Spring boot. Here is a working example out there which uses Spring Boot, but I'm working on an existing application which is not using ...
Håvard Geithus's user avatar
0 votes
2 answers
920 views

There are 2 controllers having same @RequestMapping value : package com.ambre.hib.controller; @Controller public class AppointmentsController { @RequestMapping(value = "/new", method = ...
pheromix's user avatar
  • 19.6k
0 votes
1 answer
86 views

I want to implement a server-side filtering of DataTable. Here is the service method for retrieving the list : @Override @Transactional public List<User> list(int start, int length, ...
pheromix's user avatar
  • 19.6k
0 votes
0 answers
68 views

I am implementing server-side filtering of dataTable. In the service which implements the filtering I want to test if the search criteria is a number ; if so then I implement the filtering based on ...
pheromix's user avatar
  • 19.6k
2 votes
1 answer
5k views

My IDE is Spring Tool Suite. I want to use the NumberUtils.isNumber function. STS does not know the class , and there is no suggestion of import in the error icon. My buildpath is using java-se 1.6 : ...
pheromix's user avatar
  • 19.6k
0 votes
1 answer
305 views

I found a simple problem and ask for help. There are the exception message: Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory....
T4Technologic's user avatar
0 votes
2 answers
4k views

I want to autowire a variable : package com.ambre.hib.dao; public interface LangDAO { public String _getText(); } package com.ambre.hib.dao; import org.springframework.beans.factory....
pheromix's user avatar
  • 19.6k
8 votes
2 answers
22k views

I am not able to get my Swagger UI to work with my project. Swagger UI comes up fine but it does not list any of my REST controllers. I am using SPRING 4.2.6.RELEASE and Swagger 2.5.0 . My rest ...
serah's user avatar
  • 2,177
2 votes
1 answer
2k views

In my application the ehcache is configured as below. AppDataRegion.java //import statements. public class AppDataRegion{ //Variable for region identifier. private String appRegionId; // ...
Tim's user avatar
  • 1,501
2 votes
1 answer
1k views

I am trying to migrate spring security 3.x to 4.x, while doing so I had the following error Aug 27, 2016 11:16:03 AM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception ...
Abhishek Patil's user avatar
-1 votes
3 answers
2k views

Why the link http://localhost:8080/demo00/user/ didn't work, saying 404, how to fix it? My website project structure: website structure pom.xml: <project xmlns="http://maven.apache.org/POM/4.0.0" ...
J.W's user avatar
  • 719
1 vote
3 answers
6k views

My ajax is performing successfully because it deletes the row from database : @Controller ... @ResponseBody @RequestMapping(value = "/ajaxDeleteUser", method = RequestMethod.POST) ...
pheromix's user avatar
  • 19.6k
5 votes
2 answers
12k views

how can I use external configurations within my Spring application? package hello.example2.Container import org.springframework.web.bind.annotation.PathVariable import org.springframework.web.bind....
MonkeyMonkey's user avatar
0 votes
3 answers
14k views

I want to read properties file keys and I found that there is the classpath attribute to set in the @PropertySource annotation : @Configuration @PropertySources({ @PropertySource("classpath:...
pheromix's user avatar
  • 19.6k
0 votes
1 answer
2k views

In PHP there is the die("some message"); to write output and stop the execution of the script. So is there an equivalent in Spring mvc ( in Controller and in the JSP ) ?
pheromix's user avatar
  • 19.6k
1 vote
1 answer
1k views

I have migrated my project from spring-3.1.2 and java-6 to Spring-4.1.6 and java-8. Setter methods with Spring @Qualifier annotation are not invoked after this migration resulting in null values for ...
Pawandeep's user avatar
234 votes
7 answers
250k views

What's the difference between @GetMapping and @RequestMapping(method = RequestMethod.GET)? I've seen in some Spring Reactive examples, that @GetMapping was used instead of @RequestMapping.
nowszy94's user avatar
  • 3,331
0 votes
0 answers
174 views

I want to separate frontend and backend into two different JVMs. I know EJB3 is for that purpose. Nevertheless I have not found documentation and examples to implement it using Spring 4. Could you ...
user2108278's user avatar
0 votes
0 answers
264 views

I created a spring project (Spring 4.0.2). I present the required files: spring.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" ...
Sarra's user avatar
  • 21

1 2 3
4
5
13