kgusarov / spring-boot-netty Goto Github PK
View Code? Open in Web Editor NEWSpring Boot integration with Netty
License: MIT License
Spring Boot integration with Netty
License: MIT License
Big guy, how to combine with Springboot through the interface form server to actively send messages to the client, this how to interact?
Hi, @kgusarov!
I really liked this project
It's so convenient to use it with Spring Boot. I would like to see it as a Spring Boot team project :)
I did some things:
You can look at my master
Thanks for you work!
I download your code, and read your docs.But I am a beginner of spring and netty and get the error log below:
2020-03-17 18:05:23.251 INFO 24684 --- [ main] o.k.i.s.n.o.OnConnectApplication : Starting OnConnectApplication on DESKTOP-FMHBFVQ with PID 24684 (D:\github3\spring-boot-netty\build\classes\java\test started by ZHB in D:\github3\spring-boot-netty)
2020-03-17 18:05:23.254 DEBUG 24684 --- [ main] o.k.i.s.n.o.OnConnectApplication : Running with Spring Boot v2.2.3.RELEASE, Spring v5.2.3.RELEASE
2020-03-17 18:05:23.255 INFO 24684 --- [ main] o.k.i.s.n.o.OnConnectApplication : The following profiles are active: onconnect
2020-03-17 18:05:23.747 INFO 24684 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode.
2020-03-17 18:05:23.770 INFO 24684 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 13ms. Found 0 JPA repository interfaces.
2020-03-17 18:05:24.071 INFO 24684 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2020-03-17 18:05:24.169 INFO 24684 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed.
2020-03-17 18:05:24.213 INFO 24684 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default]
2020-03-17 18:05:24.309 INFO 24684 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.4.10.Final}
2020-03-17 18:05:24.507 INFO 24684 --- [ main] o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2020-03-17 18:05:24.705 INFO 24684 --- [ main] org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
2020-03-17 18:05:24.921 INFO 24684 --- [ main] o.h.e.t.j.p.i.JtaPlatformInitiator : HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform]
2020-03-17 18:05:24.928 INFO 24684 --- [ main] j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit 'default'
2020-03-17 18:05:24.960 WARN 24684 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'onConnectController': Unsatisfied dependency expressed through field 'calls'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.kgusarov.integration.spring.netty.etc.HandlerMethodCalls' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2020-03-17 18:05:24.961 INFO 24684 --- [ main] j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit 'default'
2020-03-17 18:05:24.961 INFO 24684 --- [ main] .SchemaDropperImpl$DelayedDropActionImpl : HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
2020-03-17 18:05:24.966 INFO 24684 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated...
2020-03-17 18:05:24.967 INFO 24684 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
2020-03-17 18:05:24.973 INFO 24684 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-03-17 18:05:25.105 ERROR 24684 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
Field calls in org.kgusarov.integration.spring.netty.onconnect.OnConnectController required a bean of type 'org.kgusarov.integration.spring.netty.etc.HandlerMethodCalls' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'org.kgusarov.integration.spring.netty.etc.HandlerMethodCalls' in your configuration.
Disconnected from the target VM, address: 'javadebug', transport: 'shared memory'.
Please help me.
First of all, I would like to thank you for releasing such a great source.
I try to apply the filter at the end of the description in the readme.md file, but it doesn't work.
I wrote the code as it is in the documentation.
size is returned as too large a value.
after in.readBytes(bytes,0,size); The system is dead in
The following logs are not recorded.
Which part is wrong?
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.