SpringCloud actual combat project full set of learning tutorials serialized
PassJava tutorial
Introduction to the
- The PassJava-Learning project is a Learning tutorial for the PassJava project. Explain architecture, business and technical points.
- PassJava is a type of Java
Brush the interview questions
Open source system, you can use fragmentary time to use small procedures to view often meet test questions, solid Java foundation. - The PassJava project can teach you how to build a SpringBoot project, a Spring Cloud project
- Use popular technologies, such as SpringBoot, MyBatis, Redis, MySql, MongoDB, RabbitMQ, Elasticsearch, Docker container deployment.
Better reading experience
- Document address: www.jayh.club
- The standby address: jackson0714. Making. IO/PassJava – Le…
Document serialization directory
- Create a brush Java knowledge of small procedures
- Create a brush Java knowledge of small procedures (two)
- 01. Understand distributed basics in five minutes
- 02. Quickly Build a Linux Environment – Essential for O&M
- 03. Configure the VM network
- 4. Install the Docker
- 05. Docker mysql installation
- 6. Install redis Docker
- 07. Configure the local development environment
- 08. Configure Git
- 09. Initialize the project and add microservices
- 10.PassJava- Microservices partition diagram
- 11. Initialize the database and tables
- 12. Set up the management background
PassJava initializes the project and adds microservices
1. Create an empty repository on GitHub
2. Import empty projects from GitHub
3. Add content services
passjava-content
The serial number | field | content |
---|---|---|
1 | group | com.jackson0714.passjava |
2 | Artifact | passjava-content |
3 | Name | passjava-content |
4 | Description | Gabi – Content services |
5 | Package | com.jackson0714.passjava.content |
- Add dependency components SpringWeb, OpenFeign
3. Add other microservices
The serial number | The service description | The service name |
---|---|---|
1 | Content microservices | passjava-content |
2 | Member Micro service | passjava-member |
3 | Topic microservices | passjava-question |
4 | Learning microservices | passjava-study |
5 | Channel micro service | passjava-channel |
4.PassJava -platform Adds the pom. XML file
<? The XML version = "1.0" encoding = "utf-8"? > < project XMLNS = "http://maven.apache.org/POM/4.0.0" XMLNS: xsi = "http://www.w3.org/2001/XMLSchema-instance" Xsi: schemaLocation = "http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" > < modelVersion > 4.0.0 < / modelVersion > < groupId > com. Jackson0714. Passjava < / groupId > < artifactId > passjava < / artifactId > <version>0.0.1-SNAPSHOT</version> <name>passjava</name> <description> <modules> <module>passjava-content</module> <module>passjava-member</module> <module>passjava-question</module> <module>passjava-study</module> <module>passjava-channel</module> </modules> </project>Copy the code
5. Add the Maven root directory configuration
Maven handles the root project. Try Clean
6. Configure the. Gitignore file
When submitting code, ignore certain files
### gradle ### .gradle /build/ ! gradle/wrapper/gradle-wrapper.jar ### STS ### .settings/ .apt_generated .classpath .factorypath .project .settings .springBeans bin/ ### IntelliJ IDEA ### .idea *.iws *.iml *.ipr rebel.xml ### NetBeans ### nbproject/private/ build/ nbbuild/ dist/ nbdist/ .nb-gradle/ ### maven ### target/ *.war *.ear *.zip *.tar *.tar.gz **/mvnw **/mvnw.cmd **/.mvn ### logs #### /logs/ *.log ### temp ignore ### *.cache *.diff *.patch *.tmp *.java~ *.properties~ *.xml~ ### system ignore ### .DS_Store Thumbs.db Servers .metadata upload gen_code ### database ### db/db_back_dir/ ### redis ### /redis/Copy the code
Delete the. Gitignore file for the subproject
7. Submit code
You can commit using the Git tool of IDEA or using the git bash command line
git add .
git commit -m 'xxx'
git push origin masterCopy the code