In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "what is the process of TCC derivation". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn how the process of TCC derivation is.
Svn account number
Yuanzn password: TCH5mb
Project layering
MapperDao data check throw new CloudBaseRuntimeException
Helper data conversion
Manager code extraction layer business logic check to this layer other service calls to this layer code generated by the code generator is transferred to this layer to ensure that the business code in the service layer is clear
Exception handling
CloudBaseRuntimeException business exception controller layer exception capture controller layer comment
Thread pool
CloudX-afterSale-job
Task
Code template code format code layering
Environment configuration
Virtual machine MySQL docker springcloud poseidon
Configuration
1. Environment description New platform Development Environment: saledev.linshimuye.com:81 Master Node: 10.10.15.163 Child Node 2VR 10.10.15.92 Child Node 3VR 10.10.15.147
Child node 4VR 10.10.15.176 Server permissions: root/lsmy@2019 dubbo-monitor: http://10.10.15.92:6090 dubbo-admin Administration background: http://10.10.15.179:60001 (user: root Password: root) reverse proxy plug-in address: http://10.10.15.179:8083 2, package release 2.1, front-end release: sh / data/package/script/cloud-front.sh 2.2, back-end release: backend package release can be packaged on node 1, node 2, node 3, first script package example: sh / data/webservers/script/dubbo_script_sit/order-dubbo.sh 2.4, Re-destroy the container at the primary node Create a container and destroy it. Example: kubectl delete-f / data/kubernetes/xpt-dev/dubbo/order-dubbo.yaml
Create a container example: kubectl create-f / data/kubernetes/xpt-dev/dubbo/order-dubbo.yaml
Forced destruction of containers
For example: kubectl delete pod [container name]-n=xpt-dev-- force-- grace-period=0 3, view log (master node operation) 3.1, view tomcat real-time log 3.2 on master node, view pod (container) name kubectl get pod-n=xpt-dev 3.3first, Print specific container logs according to name example: kubectl logs-f-- tail=100 order-dubbo-deployment-5994446f84-bl4kq-n=xpt-dev new destroy container kubectl delete-f / data/kubernetes/xpt-dev/dubbo/external-dubbo.yaml kubectl delete-f / data/kubernetes/xpt-dev/web/external.yaml create container kubectl create-f / data/kubernetes/xpt-dev/dubbo/external-dubbo.yaml kubectl create-f / data/kubernetes/xpt-dev/web/external .yaml compilation provider sh / data/webservers/script/dubbo_script_sit/external-dubbo.sh compile consumer sh / data/webservers/script/web_script_sit/external-web.sh view provider log tail-f-n100 / data/webservers_tomcat/tomcat-external-dubbo-13141/logs/localhost.2019-09-29.log view consumer log tail-f-n100 / data/webservers_tomcat/tomcat-external-web-10300/logs/localhost.2019 -09-29.log to view instance status kubectl get pod-o wide-n xpt-dev
Nannan 15102012806
Code hierarchical logic
Highlight the core logic: code that has nothing to do with the data checksum and the business logic of this method should not be put into the service as far as possible, but can be put into the manager layer.
Single responsibility: service layer code only provides services to controller and should not be called by other service; otherwise, circular dependencies, circular calls, etc., will occur, and the hierarchy will be unclear.
Exceptions are divided into business exceptions and system exceptions, which need to be handled separately, and different exception classes are assigned according to functional modules or systems to distinguish. For requests that do not conform to business logic, exceptions are thrown to interrupt the process and log.
Log, you can log where you want to if else, add, delete and modify it. If there is an exception in the log, you need to log the debug log for debugging information. Do not use Systen.out.print () to output data.
Management of local profiles:
Encapsulation of universal functions
Principle of module division
For others, see Ali specification.
Test server tail-f-n 100 / data/webservers_tomcat/tomcat-external-dubbo-13141/logs/localhost.2019-10-24.log
Svn://svn.linshimuye.com:3391/cloudX/code/trunk1/server/cloudX
Svn://svn.linshimuye.com:3391/cloudX/code/branch/20170309-1.0
Svn://svn.linshimuye.com:3391/QNassistan
Http://sale.linshimuye.com:8084/ 05192 xiaohong520 / / Development Environment saledev.linshimuye.com:81 03335 yvonne123 / / Test Environment http://salesit.linshimuye.com:83/ 07277 lq111111
Http://jira.linshimuye.com:8083/secure/Dashboard.jspa; username: yxwbyuanzl, password: 6 1s
SVN account: jiaxc password: zY7W74
Thank you for your reading, the above is the content of "what is the process of TCC derivation". After the study of this article, I believe you have a deeper understanding of the process of TCC derivation, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.