You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/03/19 09:01:42 UTC

[GitHub] [dubbo-go-samples] gbabyX opened a new issue #71: Why call the `hessian.RegisterPOJO(&User{})` twice

gbabyX opened a new issue #71:
URL: https://github.com/apache/dubbo-go-samples/issues/71


   I have a doubt, why the function is called twice in the `go-server` pkg, is it necessary ?
   for example:
   `helloworld/go-server/cmd/server.go`
   
   ``` 
   func main() {
   >	hessian.RegisterPOJO(&pkg.User{})
   	config.Load()
   
   	initSignal()
   }
   
   ```
   
   but in the `helloworld/pkg/user.go`
   
   ```
   func init() {
   	config.SetProviderService(new(UserProvider))
   	// ------for hessian2------
   >	hessian.RegisterPOJO(&User{})
   }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-samples] AlexStocks commented on issue #71: Why call the `hessian.RegisterPOJO(&User{})` twice

Posted by GitBox <gi...@apache.org>.
AlexStocks commented on issue #71:
URL: https://github.com/apache/dubbo-go-samples/issues/71#issuecomment-802788501


   It's a wrong guide. we should improve it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org


[GitHub] [dubbo-go-samples] AlexStocks closed issue #71: Why call the `hessian.RegisterPOJO(&User{})` twice

Posted by GitBox <gi...@apache.org>.
AlexStocks closed issue #71:
URL: https://github.com/apache/dubbo-go-samples/issues/71


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org