We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@test public void appointTest() throws Exception { this.mockMvc.perform(post(appointUrl, bookId).param("studentId", "1").accept(MediaType.APPLICATION_JSON)) .andExpect(content().contentType("application/json;charset=utf-8")); }
The text was updated successfully, but these errors were encountered:
所有实体类增加get(),set()方法后就成功了
Sorry, something went wrong.
我加了entity和dto,但是还是报这个错?
找到问题了,是jar包的问题,我写成jackson-core了,应该是jackson-Databind
No branches or pull requests
@test
public void appointTest() throws Exception {
this.mockMvc.perform(post(appointUrl, bookId).param("studentId", "1").accept(MediaType.APPLICATION_JSON))
.andExpect(content().contentType("application/json;charset=utf-8"));
}
The text was updated successfully, but these errors were encountered: