@MultipartConfig override in web.xml

前端 未结 1 622
予麋鹿
予麋鹿 2020-12-16 04:21

So I have this servlet :

    @WebServlet(name = \"StudentRegistrationUsn\", urlPatterns = {\"/university/student/registration\"})
@MultipartConfig(maxFileSiz         


        
1条回答
  •  北荒
    北荒 (楼主)
    2020-12-16 04:48

    The is missing in web.xml. This exception is basically caused because the name of the to-be-loaded class is null.

    In fact, you need to redefine everything, including the URL patterns.

    
        StudentRegistrationUsn
        com.example.StudentRegistrationUsn
        
            10485760
            20971520
            5242880
        
    
    
        StudentRegistrationUsn
        /university/student/registration
    
    

    0 讨论(0)
提交回复
热议问题