|
1 | 1 | /* |
2 | | - * Copyright 2012-2024 the original author or authors. |
| 2 | + * Copyright 2012-2025 the original author or authors. |
3 | 3 | * |
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | 5 | * you may not use this file except in compliance with the License. |
|
25 | 25 | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; |
26 | 26 | import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass; |
27 | 27 | import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication; |
28 | | -import org.springframework.boot.autoconfigure.jersey.DefaultJerseyApplicationPath; |
29 | | -import org.springframework.boot.autoconfigure.jersey.JerseyApplicationPath; |
30 | | -import org.springframework.boot.autoconfigure.jersey.JerseyProperties; |
31 | | -import org.springframework.boot.autoconfigure.jersey.ResourceConfigCustomizer; |
32 | 28 | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| 29 | +import org.springframework.boot.jersey.autoconfigure.DefaultJerseyApplicationPath; |
| 30 | +import org.springframework.boot.jersey.autoconfigure.JerseyApplicationPath; |
| 31 | +import org.springframework.boot.jersey.autoconfigure.JerseyProperties; |
| 32 | +import org.springframework.boot.jersey.autoconfigure.ResourceConfigCustomizer; |
33 | 33 | import org.springframework.context.annotation.Bean; |
34 | 34 | import org.springframework.context.annotation.Configuration; |
35 | 35 | import org.springframework.context.annotation.Import; |
|
44 | 44 | @ManagementContextConfiguration(value = ManagementContextType.SAME, proxyBeanMethods = false) |
45 | 45 | @EnableConfigurationProperties(JerseyProperties.class) |
46 | 46 | @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET) |
47 | | -@ConditionalOnClass(ResourceConfig.class) |
| 47 | +@ConditionalOnClass({ JerseyApplicationPath.class, ResourceConfig.class }) |
48 | 48 | @ConditionalOnMissingClass("org.springframework.web.servlet.DispatcherServlet") |
49 | 49 | public class JerseySameManagementContextConfiguration { |
50 | 50 |
|
|
0 commit comments