IDEA, spring, Tomcat, War, Weblogic learning finishing memo 1

1. idea Quguan network to download, the official website to download and install, if it is ubuntu, can be installed directly from the command line using snap library without downloading.

 

 

2. idea compared with the eclipse, that is, no plug-ins, commonly used kits are prefabricated good,

file->new project

 

 

3. Configure the tomcat server

  run -> run... -> add new configation , 选择 tomcat server 

(1) Click on the right side of configue application server, configure the tomcat home

(2) automatically appears tomcat version, etc., other information do not specifically set

 

 

3. Create spring mvc application

   Suggested steps

   (1) Create a sping mvc application with the idea, generates the default directory structure

   (2) to find a version of helloworld spring mvc from the git, a copy of which code into your project

  (3) make changes to output information or map, etc., pay attention, follow the blog to write code from csdn, often do not run up

 (4) all the sping lib, server-api (tomcat there) into the lib

 (5) click on the file -> project structure .., this is the configuration of the project

     It is important Atifact

===== Important ========

  (1) nested tomcat running, select the artifacts web exploded; or, more simply: tomcat Server configuration to select the Deployment, click the +, automatically configures selected artifact ...

   Guaranteed to run under tomcat.

 (2) If the Package war, when deployed to weblogic, generated based on web exploded war

 

 

 

Guess you like

Origin www.cnblogs.com/lxgbky/p/11386879.html