The beginning of a small JavaWeb project

Java development that has been put on hold for a long time, and now I have to go back to this road again. I don’t know if it has been put on hold for too long, or it is a little bit powerless from the beginning, but since it has been done, let’s fire it up!

Because I use a mac, there are a lot of software settings that are different, but if you don't leave the sect, it's still the same.

This record is not for anyone to see. I don't have that kind of ability, I'm just afraid of forgetting it. I like to write it down and see if I can use it in the future. !

1. Install eclipse (there is no problem at all, just install it and use it, and there are no special requirements for the version, just pick one and download it)

2. Install tomcat

  Because it is a mac reason, so choose this when choosing a package

 

 

  After downloading, decompress it in finder. It is best to put the decompressed package under the Library folder, and some apples will hide this folder, or it is a waste of time because it is too hidden when looking for it. , you can use the shortcut key command+shift+g, then enter ~/Library, you can directly enter the folder, and then put the decompressed package in it. In fact, there is not much benefit to doing this, it is just a habit, it is convenient, at least I don't think there is any difference, and then change the name to tomcat, so that you don't have to enter such a long name when you start it later. Then it is to configure tomcat, open the terminal, enter    sudo chmod 755 Library/tomcat/bin/*.sh    After entering, enter the administrator password, and then pop up a No what the hell command, I thought something went wrong, there is no later management, go directly to the next step, start tomcat, I just write the method I do. . . Find the stratup.sh file in Liarbry/tomcat/bin, drag it directly to the terminal and press Enter. Then you can check whether the startup is successful, open the web page, enter localhost:8080, and you can see the page of the big stupid cat, even if the startup is successful.

ps:

sudo chmod 755 (the location where your Tomcat is decompressed, you can drag and drop it directly)/bin/*.sh

Note: sudo is usually the system super administrator. 755 On behalf of the user, the user has read, write, and execute permissions to the file. Other people in the same group have execute and read permissions, but no write permissions. The permissions of other users are the same as those of the same group. . 777 means that user, group, others have read, write and executable permissions.

 

  Next, you can see tomcat in your installed eclipse

 

  The general habit is to install tomcat. After eclipse is started, some ports will be changed. In order to avoid conflicts, you can modify them in

It's fairly simple to add the ports you want here.

  After that, create your first web.xml file, add your first index.jsp to the xml, and basically the first small step is finished. .

  

  Damn, it takes so long to write something like this, can I learn a lot in this time, haha. It's a bit unpleasant, let's do it first, it's very likely that this beginning is an ending, haha

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324886276&siteId=291194637