Apache, Tomcat
Jan 24, 2024
Tomcat
- 스프링이 내장되어있음
- 소켓이 내장되어 있음
- 파일명 : 인덱스
1. 구성 확인
웹 서버 : 정적 파일, html파일이 모여있는 폴더
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <h1> apatch tomcat</h1> </body> </html>
.xml : 열고 닫는 확장자가 있음
<?xml version="1.0" encoding="UTF-8"?> <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --> <web-app xmlns="https://jakarta.ee/xml/ns/jakartaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/web-app_6_0.xsd" version="6.0" metadata-complete="true"> <display-name>Welcome to Tomcat</display-name> <description> Welcome to Tomcat </description> </web-app>
conf : 실행 중인 파일 모아 놓은 곳
요청 사항이 없을 경우 저 3가지 경우 중 하나로 응답하도록 설계됨
2) Tomcat의 시작 종료
인덱스의 내용이 지워서 요청 사항이 없을 때 반환할 내용이 없어 오류가 남
Share article