-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug
Milestone
Description
Łukasz Dywicki opened SPR-6502 and commented
After switch from Spring 3.0.0 RC1 to Spring 3.0.0 RC3 my controlers stop working. Spring says:
No adapter for handler [org.code_house.spring3.web.UserControllerImpl@5a7691c0]: Does your handler implement a supported interface like Controller?
Test application (war, jar with sources) are available in Maven repository:
http://repository.code-house.org/content/repositories/code-house.internal.snapshot/org/code-house/spring3/test/1.0.0.SNAPSHOT/
Controller code:
package org.code_house.spring3.web;
import java.util.List;
import org.code_house.spring3.api.UserController;
import org.code_house.spring3.dao.api.UserDAO;
import org.code_house.spring3.domain.Group;
import org.code_house.spring3.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequestMapping("/users")
public class UserControllerImpl extends GenericControllerImpl<User, Integer>
implements UserController {
private UserDAO daoImpl;
public List<Group> listAssigns() {
return daoImpl.listAssigns();
}
public boolean assign(@PathVariable Integer number) {
daoImpl.assign(number);
return Boolean.TRUE;
}
@Autowired
public void setDaoImpl(UserDAO daoImpl) {
setDao(daoImpl);
this.daoImpl = daoImpl;
}
}
Affects: 3.0 RC3
Attachments:
- spring.log (108.36 kB)
Issue Links:
- When looking up methods with @RequestMapping annotation, unannotated bridge methods are included [SPR-6206] #10874 When looking up methods with
@RequestMappingannotation, unannotated bridge methods are included
Referenced from: commits 27e0642
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)type: bugA general bugA general bug