Knowledge is boundless
Record the process of importing tomcat and mybatis source code into eclipse
It's been a long time since I developed it, so I can't be old crud. Look at the source code and design ideas of others.
0. Import tomcat source code into eclipse
Download tomcat source https://github.com/apache/tomcat , then follow the steps to download (also available clone git https://github.com/apache/tomcat.git )
Then unzip (at this time eclipse can not recognize)
There are four third-party jar addresses: https://mvnrepository.com/artifact/org.apache.ant/ant/1.10.7 , https://mvnrepository.com/artifact/org.eclipse.jdt/org.eclipse .jdt.core / 3.21.0 , https://mvnrepository.com/artifact/javax.xml.rpc/javax.xml.rpc-api/1.1.2 , https://mvnrepository.com/artifact/javax.wsdl /javax.wsdl/1.4.0-20070705 , put it in the lib directory after downloading
Then go to download the other three files eclipse-tomcat configuration , unzip it to the Tomcat source directory
Open eclipse to import tomcat source code, refer to https://blog.csdn.net/dong19891210/article/details/105517964 import link
Normal is not being given at this time
1. Import MyBatis source code into eclipse
Go to GitHub MyBatis download the source code,
Decompression
At this time, eclipse is not recognized, go to download the prepared file mybatis-settings , and then unzip to the root directory of mybatis
Then import through eclipse, the steps are the same as above, the effect is shown
Postscript: Problems
0. error (Tomcat has a similar bugs), as shown in FIG phenomenon,
Tomcat third-party jar
So far, the source code has been moved into eclipse,
Can do a lot of third-party extension development, such as self-written (not using mybatis, nor using spring -jdbc) integrated into spring
In other words, mybatis and spring-jdbc are not necessarily required
knock off! ! ! ! ! ! Can learn through linguistic talents have the opportunity to write good framework analogy, unlike a lot of people crushed pure sense of the concept of endorsement back back by heart (possibly a bad atmosphere interview or need), but the effect is minimal, the Spring It is really powerful. China, the United States, India, South Korea, Japan and Singapore all use spring. . .