Пользовательский интерфейс Swagger выдает ошибку 404 с Springboot2JAVA

Программисты JAVA общаются здесь
Ответить
Anonymous
 Пользовательский интерфейс Swagger выдает ошибку 404 с Springboot2

Сообщение Anonymous »

Я переношу приложение Springboot 2.7.18 с Springfox-swagger на Springdoc-openapi.
Выполнил настройку, добавил свойства и т. д., но при попытке доступа к /swagger-ui/ в журналах Catalina получаю следующее: index.html, /swagger-ui.html, /v3/api-docs/swagger-config, /v3/api-docs и т. д.

Код: Выделить всё

SEVERE: Servlet.service() for servlet [api] threw exception
java.lang.IllegalArgumentException: This method cannot decide whether these patterns are Spring MVC patterns or not.  If this endpoint is a Spring MVC endpoint, please use requestMatchers(MvcRequestMatcher);  otherwise, please use requestMatchers(AntPathRequestMatcher).

This is because there is more than one mappable servlet in your servlet context:  {com.abc.def.controller.servlet.ScepServletIermpl=[/c/scep/*], org.apache.catalina.servlets.DefaultServlet=[], com.abc.def.controller.servlet.ScepServletImpl=[/c/scep-internal], com.abc.def.controller.servlet.CDNServletImpl=[/cdn/*], org.apache.jasper.servlet.JspServlet=[*.jspx, *.jsp], org.springframework.web.servlet.DispatcherServlet=[], org.springframework.ws.transport.http.MessageDispatcherServlet=[/c/d/e/f.svc]}.

For each MvcRequestMatcher,  c a l l   M v c R e q u e s t M a t c h e r # s e t S e r v l e t P a t h   t o   i n d i c a t e   t h e   s e r v l e t   p a t h . < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . u t i l . A s s e r t . n o t N u l l ( A s s e r t . j a v a : 2 1 9 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . c o n f i g . a n n o t a t i o n . w e b . A b s t r a c t R e q u e s t M a t c h e r R e g i s t r y $ D i s p a t c h e r S e r v l e t R e q u e s t M a t c h e r . m a t c h e s ( A b s t r a c t R e q u e s t M a t c h e r R e g i s t r y . j a v a : 6 3 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . u t i l . m a t c h e r . O r R e q u e s t M a t c h e r . m a t c h e s ( O r R e q u e s t M a t c h e r . j a v a : 5 8 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . c o n f i g . a n n o t a t i o n . w e b . A b s t r a c t R e q u e s t M a t c h e r R e g i s t r y $ D i s p a t c h e r S e r v l e t D e l e g a t i n g R e q u e s t M a t c h e r . r e q u e s t M a t c h e r ( A b s t r a c t R e q u e s t M a t c h e r R e g i s t r y . j a v a : 6 6 6 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . c o n f i g . a n n o t a t i o n . w e b . A b s t r a c t R e q u e s t M a t c h e r R e g i s t r y $ D i s p a t c h e r S e r v l e t D e l e g a t i n g R e q u e s t M a t c h e r . m a t c h e s ( A b s t r a c t R e q u e s t M a t c h e r R e g i s t r y . j a v a : 6 7 4 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . c o n f i g . a n n o t a t i o n . w e b . A b s t r a c t R e q u e s t M a t c h e r R e g i s t r y $ D e f e r r e d R e q u e s t M a t c h e r . m a t c h e s ( A b s t r a c t R e q u e s t M a t c h e r R e g i s t r y . j a v a : 5 9 5 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . D e f a u l t S e c u r i t y F i l t e r C h a i n . m a t c h e s ( D e f a u l t S e c u r i t y F i l t e r C h a i n . j a v a : 7 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a c c e s s . R e q u e s t M a t c h e r D e l e g a t i n g W e b I n v o c a t i o n P r i v i l e g e E v a l u a t o r . g e t D e l e g a t e ( R e q u e s t M a t c h e r D e l e g a t i n g W e b I n v o c a t i o n P r i v i l e g e E v a l u a t o r . j a v a : 1 2 0 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a c c e s s . R e q u e s t M a t c h e r D e l e g a t i n g W e b I n v o c a t i o n P r i v i l e g e E v a l u a t o r . i s A l l o w e d ( R e q u e s t M a t c h e r D e l e g a t i n g W e b I n v o c a t i o n P r i v i l e g e E v a l u a t o r . j a v a : 7 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . f i l t e r . E r r o r P a g e S e c u r i t y F i l t e r . i s A l l o w e d ( E r r o r P a g e S e c u r i t y F i l t e r . j a v a : 8 8 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . f i l t e r . E r r o r P a g e S e c u r i t y F i l t e r . d o F i l t e r ( E r r o r P a g e S e c u r i t y F i l t e r . j a v a : 7 6 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . b o o t . w e b . s e r v l e t . f i l t e r . E r r o r P a g e S e c u r i t y F i l t e r . d o F i l t e r ( E r r o r P a g e S e c u r i t y F i l t e r . j a v a : 7 0 ) < b r   / >                 a t   o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . i n t e r n a l D o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 1 7 8 ) < b r   / >                 a t   o r g . a p a c h e . c a t a l i n a . c o r e . A p p l i c a t i o n F i l t e r C h a i n . d o F i l t e r ( A p p l i c a t i o n F i l t e r C h a i n . j a v a : 1 5 3 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 5 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a c c e s s . i n t e r c e p t . F i l t e r S e c u r i t y I n t e r c e p t o r . i n v o k e ( F i l t e r S e c u r i t y I n t e r c e p t o r . j a v a : 1 0 8 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a c c e s s . i n t e r c e p t . F i l t e r S e c u r i t y I n t e r c e p t o r . d o F i l t e r ( F i l t e r S e c u r i t y I n t e r c e p t o r . j a v a : 8 3 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 2 2 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 2 2 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . o a u t h 2 . c l i e n t . f i l t e r . O A u t h 2 C l i e n t C o n t e x t F i l t e r . d o F i l t e r ( O A u t h 2 C l i e n t C o n t e x t F i l t e r . j a v a : 6 0 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a c c e s s . E x c e p t i o n T r a n s l a t i o n F i l t e r . d o F i l t e r ( E x c e p t i o n T r a n s l a t i o n F i l t e r . j a v a : 1 2 6 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a c c e s s . E x c e p t i o n T r a n s l a t i o n F i l t e r . d o F i l t e r ( E x c e p t i o n T r a n s l a t i o n F i l t e r . j a v a : 1 2 0 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . s e s s i o n . S e s s i o n M a n a g e m e n t F i l t e r . d o F i l t e r ( S e s s i o n M a n a g e m e n t F i l t e r . j a v a : 9 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . s e s s i o n . S e s s i o n M a n a g e m e n t F i l t e r . d o F i l t e r ( S e s s i o n M a n a g e m e n t F i l t e r . j a v a : 8 5 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A n o n y m o u s A u t h e n t i c a t i o n F i l t e r . d o F i l t e r ( A n o n y m o u s A u t h e n t i c a t i o n F i l t e r . j a v a : 1 0 0 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . s e r v l e t a p i . S e c u r i t y C o n t e x t H o l d e r A w a r e R e q u e s t F i l t e r . d o F i l t e r ( S e c u r i t y C o n t e x t H o l d e r A w a r e R e q u e s t F i l t e r . j a v a : 1 6 4 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . s a v e d r e q u e s t . R e q u e s t C a c h e A w a r e F i l t e r . d o F i l t e r ( R e q u e s t C a c h e A w a r e F i l t e r . j a v a : 6 3 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o n t r o l l e r . f i l t e r . B a s i c P i n A u t h e n t i c a t i o n F i l t e r . d o F i l t e r ( B a s i c P i n A u t h e n t i c a t i o n F i l t e r . j a v a : 8 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o n t r o l l e r . f i l t e r . P a r t n e r A c c o u n t N o n c e B a s e d A u t h F i l t e r . d o F i l t e r ( P a r t n e r A c c o u n t N o n c e B a s e d A u t h F i l t e r . j a v a : 1 1 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 2 2 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 2 2 1 ) < b r   / >                 a t   c o m . a b c . d e f . s e c u r i t y . a u t h e n t i c a t i o n . s a m l . S A M L A u t h e n t i c a t i o n F i l t e r . d o F i l t e r ( S A M L A u t h e n t i c a t i o n F i l t e r . j a v a : 8 3 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 2 2 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 2 2 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . s a m l . S A M L E n t r y P o i n t . d o F i l t e r ( S A M L E n t r y P o i n t . j a v a : 1 0 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . s e c u r i t y . a u t h e n t i c a t i o n . s a m l . S A M L L o g i n R e d i r e c t F i l t e r . d o F i l t e r ( S A M L L o g i n R e d i r e c t F i l t e r . j a v a : 1 2 9 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o m m o n . a u t h . f i l t e r . C o o k i e A u t h e n t i c a t i o n F i l t e r . d o F i l t e r ( C o o k i e A u t h e n t i c a t i o n F i l t e r . j a v a : 9 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 2 2 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( A b s t r a c t A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 2 2 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . o a u t h 2 . p r o v i d e r . a u t h e n t i c a t i o n . O A u t h 2 A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . d o F i l t e r ( O A u t h 2 A u t h e n t i c a t i o n P r o c e s s i n g F i l t e r . j a v a : 1 7 6 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o n t r o l l e r . f i l t e r . M d m O i d c P r o v i d e r P a r t i a l A u t h F i l t e r . d o F i l t e r ( M d m O i d c P r o v i d e r P a r t i a l A u t h F i l t e r . j a v a : 6 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o n t r o l l e r . f i l t e r . V a l i d T o k e n C h e c k F i l t e r . d o F i l t e r ( V a l i d T o k e n C h e c k F i l t e r . j a v a : 8 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . s e c u r i t y . a u t h e n t i c a t i o n . L o g i n N o n c e A u t h e n t i c a t i o n F i l t e r . d o F i l t e r ( L o g i n N o n c e A u t h e n t i c a t i o n F i l t e r . j a v a : 8 9 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o n t r o l l e r . f i l t e r . U i M e t a d a t a A p i F i l t e r . d o F i l t e r ( U i M e t a d a t a A p i F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o n t r o l l e r . f i l t e r . D e e p L i n k I d e n t i f i c a t i o n F i l t e r . d o F i l t e r ( D e e p L i n k I d e n t i f i c a t i o n F i l t e r . j a v a : 5 3 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . l o g o u t . L o g o u t F i l t e r . d o F i l t e r ( L o g o u t F i l t e r . j a v a : 1 0 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . a u t h e n t i c a t i o n . l o g o u t . L o g o u t F i l t e r . d o F i l t e r ( L o g o u t F i l t e r . j a v a : 9 3 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o n t r o l l e r . f i l t e r . T e n a n t S u p p r e s s i o n E x c e p t i o n H a n d l e r F i l t e r . d o F i l t e r ( T e n a n t S u p p r e s s i o n E x c e p t i o n H a n d l e r F i l t e r . j a v a : 4 5 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   c o m . a b c . d e f . c o n t r o l l e r . f i l t e r . S e s s i o n I n a c t i v i t y T i m e o u t F i l t e r . d o F i l t e r ( S e s s i o n I n a c t i v i t y T i m e o u t F i l t e r . j a v a : 7 7 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . w e b . f i l t e r . O n c e P e r R e q u e s t F i l t e r . d o F i l t e r ( O n c e P e r R e q u e s t F i l t e r . j a v a : 1 0 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . c o n t e x t . S e c u r i t y C o n t e x t H o l d e r F i l t e r . d o F i l t e r ( S e c u r i t y C o n t e x t H o l d e r F i l t e r . j a v a : 8 2 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . c o n t e x t . S e c u r i t y C o n t e x t H o l d e r F i l t e r . d o F i l t e r ( S e c u r i t y C o n t e x t H o l d e r F i l t e r . j a v a : 6 9 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e c u r i t y . w e b . F i l t e r C h a i n P r o x y $ V i r t u a l F i l t e r C h a i n . d o F i l t e r ( F i l t e r C h a i n P r o x y . j a v a : 3 6 1 ) < b r   / >                 a t   o r g . s p r i n g f r a m e w o r k . s e s s i o n . w e b . h t t p . S e s s i o n R e p o s i t o r y F i l t e r . d o F i l t e r I n t e r n a l ( S e s s i o n R e p o s i t o r y F i l t e r . j a v a : 1 4 2 ) < b r   / >                 a t   o r g . s p r i n g f r amework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:82)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:102)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:102)
at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:361)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:225)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:190)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:354)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:267)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:102)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.springframework.cloud.sleuth.instrument.web.servlet.TracingFilter.doFilter(TracingFilter.java:68)
at org.springframework.cloud.sleuth.autoconfig.instrument.web.TraceWebServletConfiguration$LazyTracingFilter.doFilter(TraceWebServletConfiguration.java:131)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:102)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:178)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:153)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:661)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:427)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:357)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:294)
at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:377)
at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:237)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:166)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:670)
at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:765)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:93)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:390)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:926)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1790)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:52)
at org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
at org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:840)
Ожидается, что будет отображен пользовательский интерфейс Swagger. Однако это не так работает.


Подробнее здесь: https://stackoverflow.com/questions/792 ... pringboot2
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «JAVA»