java.lang.NoClassDefFoundError: javax/el/PropertyNotFoundException when I send invalid values to controller

后端 未结 4 2148
你的背包
你的背包 2021-02-07 22:54

I use MockMvc for my controller testing

@Test
    public void updateEvent() throws Exception{
        MockHttpServletRequestBuilder request = MockMvcRequestBuild         


        
4条回答
  •  悲哀的现实
    2021-02-07 23:40

    You maybe just need to add the dependency in your test. Are you using maven? if so, can you try to add this to your pom? You may need a different jar/version, but something like this:

    
      javax.el
      javax.el-api
      3.0.0
      test
    
    

提交回复
热议问题