Record three months of work from. NET to Java

Source: Internet
Author: User

In. NET development has been 4 years, after more than 10 projects of learning and precipitation, and finally have a set of their own familiar and relatively perfect technology system, in the face of the unknown, no longer afraid. Works completed and widely used in the company's projects include:
    1. ABP Two-time development framework BODEABP
    2. Owin-based SSO system
    3. Fully automatic data form react and jquery version
    4. General-Purpose Property system
Slowly discovering that development is simple, and that all business needs seem like a mechanical repetition, I seem to be entering the comfort zone. However, the far-reaching vast expanse of technology ocean is not my belly that 32 drops of ink can be measured, I have to go a long way, coincides with the company in May launched a Java platform web site development, and the existing technical team are. NET, we face a great challenge. One of the technology selection, development framework of the building are I need to solve the problem, the pit countless, and in the pit of the fire reborn.  From. NET to Java, not to transform, but to enrich yourself. Everything starts hard, in the. NET technology system in a few years after the first contact with Java, and even how to use the editor I was crazy, but the search engine, after two days of crazy data query and a variety of inexplicable inner struggle. The final technology selection is:
    • Development tools: Idea
    • Web framework: Spring MVC
    • Orm:mybatis and its enhancement tools Mybatis-plus
    • LOG: Slf4j + log4j
    • Cache: Redis
preparatory workThe preparation is mainly the construction of Java development environment, Miss. NET one-click installation of Visual Studio days, the main work is:
    • JDK Installation
    • JRE Installation
    • Tomcat installation
    • Idea's installation and cracking
    • Configuration of MAVEN installations and domestic mirrors
    • Installation of Redis
MAVEN is the Java Package Manager, similar to. NET NuGet, the front-end npm and yarn. Subsequent integration of the Dubbo Service framework also required Dubbo-admin deployment and zookeeper installation.Development ProcessThe first use of Java development Project, the process encountered problems are really countless, an XML configuration exception let me struggle for two days can not solve, eventually have to delete the project to start again, the whole process like this whole project was built to delete, deleted the re-construction experience 5 times finally have a can use the simple development framework, You can write business code for them. Thanks to the knowledge of. NET work for Web development, after nearly two weeks after the painful period is very quick to get started, encountered problems through the search engine can be solved quickly, many ideas are interlinked, just realize the difference between the way, our development speed is also gradually accelerated, during the period also fixed a lot of development framework bug. Two months past, continuous pits, continuous reconstruction projects, the development framework gradually stabilized, however, we switched from. NET to Java, certainly not simply a new language experience under the life, more for the Java system of those mature distributed solutions (such as Dubbo, spring Cloud, etc.), and then began a new round of labor period, the project structure has undergone great changes, and in the meantime a large reconstruction, but at this time for Java i solve the problem is much better than before, the integration of the Dubbo process, the problems encountered in almost two hours to solve. Last weekend, Dubbo was integrated, tested, and developed almost as before. While standing on the shoulders of giants to build my first distributed application, the joy of its completion is still good. I also see some of the shortcomings of the previously built. NET Framework, which is another form of nurturing.Final ResultsThe entire project structure is continually reconstructed during the development process, and the Dubbo Service Framework is integrated in the refactoring process, as shown in the following: Cczcrv-core: Includes various abstract base classes and tool classes, cache implementations, etc. Cczcrv-service-common: Relies on cczcrv-core, including the definition of all service interfaces, DTOs, and model. Cczcrv-service-xxx: Relies on Cczcrv-core, Cczcrv-service-common, the implementation of the service. Each module can be deployed in a cluster, can have its own database, can do separate read and write separation, and so on. Cczcrv-web-website: Relies on cczcrv-core, cczcrv-service-common,web layer, call remote service, do not rely on concrete implementation.written in the lastI deleted the business code after I put the project on GitHub, address: Https://github.com/liuxx001/cczcrv-java, interested can see. Reference project: Http://git.oschina.net/iBase4J/iBase4Jhttps://github.com/judasn/IntelliJ-IDEA-Tutorial

Record three months of work from. NET to Java

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.