Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 082952e

Browse files
committed
Import Spring components explicitly instead of using ComponentScan fix #428
1 parent 1e359b4 commit 082952e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1818
#
1919

20-
version = 7.1.0-SNAPSHOT
20+
version = 7.2.0-SNAPSHOT
2121

2222
### Project Metadata
2323

graphql-kickstart-spring-boot-autoconfigure-webflux/src/main/java/graphql/kickstart/spring/webflux/boot/GraphQLSpringWebfluxAutoConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
4141
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
4242
import org.springframework.context.annotation.Bean;
43-
import org.springframework.context.annotation.ComponentScan;
4443
import org.springframework.context.annotation.Configuration;
44+
import org.springframework.context.annotation.Import;
4545
import org.springframework.web.reactive.HandlerMapping;
4646
import org.springframework.web.reactive.handler.SimpleUrlHandlerMapping;
4747
import org.springframework.web.reactive.socket.WebSocketHandler;
@@ -51,7 +51,7 @@
5151
@Configuration
5252
@ConditionalOnBean({GraphQLSchema.class})
5353
@AutoConfigureAfter({GraphQLJavaToolsAutoConfiguration.class})
54-
@ComponentScan(basePackageClasses = GraphQLController.class)
54+
@Import({GraphQLController.class, ReactiveWebSocketSubscriptionsHandler.class})
5555
public class GraphQLSpringWebfluxAutoConfiguration {
5656

5757
@Bean

0 commit comments

Comments
 (0)