100일 챌린지/빅데이터기반 인공지능 융합 서비스 개발자

Day 41 - Embeded

ksyke 2024. 9. 23. 17:14

목차

    https://archive.apache.org/dist/tomcat/tomcat-8/v8.5.100/bin/embed/

     

    Index of /dist/tomcat/tomcat-8/v8.5.100/bin/embed

     

    archive.apache.org

    Java로 서버 연결하기 

    pom.xml

    <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
      <modelVersion>4.0.0</modelVersion>
      <groupId>com.gimhae.framework</groupId>
      <artifactId>mvc</artifactId>
      <packaging>jar</packaging>
      <version>0.0.1-SNAPSHOT</version>
      <name>Day41 Maven Webapp</name>
      <url>http://maven.apache.org</url>
      <dependencies>
        <dependency>
          <groupId>junit</groupId>
          <artifactId>junit</artifactId>
          <version>4.13</version>
          <scope>test</scope>
        </dependency>
    	<!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
    	<dependency>
    	    <groupId>javax.servlet</groupId>
    	    <artifactId>javax.servlet-api</artifactId>
    	    <version>3.1.0</version>
    	    <scope>provided</scope>
    	</dependency>
    	<!-- https://mvnrepository.com/artifact/javax.servlet.jsp/javax.servlet.jsp-api -->
    	<dependency>
    	    <groupId>javax.servlet.jsp</groupId>
    	    <artifactId>javax.servlet.jsp-api</artifactId>
    	    <version>2.3.3</version>
    	    <scope>provided</scope>
    	</dependency>
    	<!-- https://mvnrepository.com/artifact/javax.servlet/jstl -->
    	<dependency>
    	    <groupId>javax.servlet</groupId>
    	    <artifactId>jstl</artifactId>
    	    <version>1.2</version>
    	</dependency>
    	<!-- https://mvnrepository.com/artifact/com.mysql/mysql-connector-j -->
    	<dependency>
    	    <groupId>com.mysql</groupId>
    	    <artifactId>mysql-connector-j</artifactId>
    	    <version>8.4.0</version>
    	</dependency>
    
      </dependencies>
      <build>
        <finalName>Day41</finalName>
        <plugins>
    	    <plugin>
    	    	<artifactId>maven-compiler-plugin</artifactId>
    	    	<configuration>
    	    		<source>1.8</source>
    	    		<target>1.8</target>
    	    	</configuration>
    	    </plugin>
        </plugins>
      </build>
    </project>