我在带有子模块的maven多模块项目上工作。我使用Spring和Spring MVC
handleChange(event) {
console.log("order by: ", event.target.attributes.getNamedItem('data-order'));
}
render() {
var options = [];
this.props.items.map((item) => {
options.push(<option value={item.value} key={item.label} data-order={item.order}>{item.label}</option>);
});
return (
<div>
<label>Filter Single Select</label>
<div>
<select className="form-control" onChange={this.handleChange} value={this.props.sortBy}>
{options}
</select>
</div>
</div>
);
}
我希望使用Jackson
从我的视图中获取数据到控制器 <modules>
<module>web</module>
<module>business</module>
<module>integration</module>
<module>persistence</module>
<module>common</module>
<module>logging</module>
</modules>
我的控制器在我的网络模块中,我的RealEstateAgency类在公共模块中 当我运行我的项目时,我收到以下错误
@RequestMapping(value = "registerAgency", method = RequestMethod.POST)
public final String
registerAgency(@RequestBody final RealEstateAgency realEstateAgency) {
//doSmth();
return "index";
}
谁能告诉我我做错了什么?
答案 0 :(得分:0)
您可能只需要将common
模块的相关性添加到pom.xml
模块中的web