Create a new Maven-achetype-webapp project, build a complete base directory, and then configure Tomcat, introduced in the deployment artifact, the first time found no artifact, Maybe the module is not initialized Well, then did not have it. Maven dependency import changes, do not know the default WebApp template will automatically introduce the initial dependency, the second time when the import changes, after deployment Add artifact success, and then start Tomcat successfully.
2. In order to better manage the project, using Git, first initialize, first build a. gitignore file
. gitignore File Contents
*.class
#package file
*.war
*.ear
#kdiff3 Ignore
*.orig
#maven Ignore
target/
#eclipse Ignore
. settings/
. Project
. classpatch
#idea
. idea/
/idea/
*.ipr
*.iml
*.iws
# temp File
*.log
*.cache
*.diff
*.patch
*.tmp
# system Ignore
. Ds_store
Thumbs.db
After configuring Git init, look at git status, then add the file to git Add., in the commit to the local repository git commit, in the Add remote repository: Git remote add orgin {git address}, if prompted remote repository already exists, use Git Remote RM origin To delete the repository, using Git remote add orgin{git address} to establish a remote repository, see: 50381432, after the completion of the establishment, the local warehouse files to the remote repository to see the current local branch git branch, For master, push to remote branch, execute GIT push-u Origin master, the first failure, follow the prompts with git pull in executing Git push-u origin master, still prompt failed, failure reason:, prompt the current branch behind the remote branch , guess the reason for the current local branch settling time after the remote branch, using the force push git push-u-F Origin master, after the push succeeds, the new version branch
Complete!
E-Commerce Website Development Note Record (-) project initialization