태공이의 라이프
개인적인 이야기들 , IT , 책, 영화 , 여행
IT 이야기/웹프로젝트 (11)
1. mybits 세팅 및 데이터베이스 생성
반응형

우선적으로 데이터 베이스랑 연동 하기 위해서는  root-context.xml을 수정 하셔야 합니다.

 

위치는 src - main - webapp - WEB-INF - spring - root-context 입니다.

 

 

위치는 이렇게 되어 있습니다. 

 

일단 beans 중간에 데이터베이슬 연동 하는 bean을 생성 해주셔야 합니다.

 

 

 

하나씩 설명을 하면서 코드도 붙여 놓겠습니다.

 

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
	
	<!-- Root Context: defines shared resources visible to all other web components -->
<!-- 		데이터 베이스 연동 -->
		<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<!-- 		연동할 데이터베이스 -->
		<property name="driverClassName" value="org.mariadb.jdbc.Driver" />
<!-- 		연동할 데이터베이스 주소 및 테이블 명 -->
		<property name="url" value="jdbc:mariadb://127.0.0.1:3306/lotto_tb" />
<!-- 		데이터베이스 유저명 -->
		<property name="username" value="root" />
<!-- 		데이터베이스 패스워드 -->
		<property name="password" value="루트비밀번호" />
		</bean>
		
		
		
</beans>

 

 

이렇게 생성 해주시고 맵퍼들도 등록해 주셔야 합니다.

 

이렇게 등록 해주시고 일단은 데이터 베이스 생성 및 컬럼들을 만들겠습니다.

 

lotto.sql
0.01MB

 

lotto.sql를 다운 받으시고 진행해 주시면 됩니다.

 

해당 파일을 다운받으신다음에 

 

HeidSQL를 실행해주신다음에 ctrl + O 을 누르셔서 SQL 파일 불러오기를 해주세요.

 

 

다운받은 파일을 불러오시면 

 

 

쿼리창에 sql문이 나오게 됩니다.

 

여기서 F9키를 눌러주셔도 되고 노란색으로 표시되어 있는 실행 버튼을 클릭해 주시면 데이터 베이스 및 테이블 들이 생성 됩니다.

 

 

 

 

일단 데이터 베이스를 생성 하셨으니 위에서 수정 하였던 root-context 를 마저 수정 하셔야 합니다.

 

 

 

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans https://www.springframework.org/schema/beans/spring-beans.xsd">
	
	<!-- Root Context: defines shared resources visible to all other web components -->
<!-- 		데이터 베이스 연동 -->
		<bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource">
<!-- 		연동할 데이터베이스 -->
		<property name="driverClassName" value="org.mariadb.jdbc.Driver" />
<!-- 		연동할 데이터베이스 주소 및 테이블 명 -->
		<property name="url" value="jdbc:mariadb://127.0.0.1:3306/lotto_tb" />
<!-- 		데이터베이스 유저명 -->
		<property name="username" value="root" />
<!-- 		데이터베이스 패스워드 -->
		<property name="password" value="루트비밀번호" />
		</bean>
		
		
		<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">

	<property name="dataSource" ref="dataSource" />

	<property name="configLocation" value="classpath:/mybatis-config.xml" />

	<property name="mapperLocations" >
	<list>
	<!--메인 맵퍼 -->
	<value>classpath:/mapper/main/*Mapper.xml</value>
	<!-- 멤버 맵퍼 -->
	<value>classpath:/mapper/member/*Mapper.xml</value>
	<!-- 인증게시판 -->
	<value>classpath:/mapper/board/*Mapper.xml</value>
	<!--자유게시퍼판 -->
	<value>classpath:/mapper/freeboard/*Mapper.xml</value>
	<!-- 	noticeboard -->
	<value>classpath:/mapper/noticeboard/*Mapper.xml</value>
	<!-- 어드민 -->
	<value>classpath:/mapper/admin/*Mapper.xml</value>
	<!-- 대댓글 연습 -->
	</list>
	
	</property>		

</bean>
	
	<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate" destroy-method="clearCache">

	<constructor-arg name="sqlSessionFactory" ref="sqlSessionFactory"></constructor-arg>

</bean>  
		
</beans>

 

최종적으로 root-context.xml 파일 입니다.

 

여기 까지 진행 하셨으면 맵퍼 파일들도 만들어 주셔야 합니다.

 

resources 폴더로 가셔서 mapper 라는 폴더를 생성 해주시고 root-context.xml에서 설정한 게시판들을 만들어 주셔야 합니다.

 

 

 

폴더 생성 하시고 root-context에 설정 대로 만들어 주시면 됩니다.

 

기본 맵퍼 파일 하나를 올려 드리겠습니다.

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE mapper

  PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"

  "http://mybatis.org/dtd/mybatis-3-mapper.dtd">


<mapper namespace="boardMapper">
	
	
</mapper>

 

맵퍼.xml의 기본 틀 입니다.

 

namespace에 이름만 다르게 지정해 주시면 됩니다.

 

여기까지 지정해 주셨으면 프로젝트를 실행해 보겠습니다.

 

프로젝트에서 마우스 오른쪽 Run AS - Run on Server 을 실행 해주세요

 

그럼 아주 멋진 일이 벌어 집니다.

 

무슨 일이냐고요? 

 

바로 오류 나거든요.

 

 

ERROR: org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in ServletContext resource [/WEB-INF/spring/root-context.xml]: Invocation of init method failed; nested exception is java.io.FileNotFoundException: class path resource [mybatis-config.xml] cannot be opened because it does not exist
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1710)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:583)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:502)
	at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:312)
	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:228)
	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:310)
	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
	at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:741)
	at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:868)
	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549)
	at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:409)
	at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291)
	at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4699)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5165)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1412)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1402)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.FileNotFoundException: class path resource [mybatis-config.xml] cannot be opened because it does not exist
	at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:180)
	at org.mybatis.spring.SqlSessionFactoryBean.buildSqlSessionFactory(SqlSessionFactoryBean.java:406)
	at org.mybatis.spring.SqlSessionFactoryBean.afterPropertiesSet(SqlSessionFactoryBean.java:380)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1769)
	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1706)
	... 21 more

 

라는 오류 입니다. mybatis가 위치 없어요 . 찾을수가 없어요 

 

라는 문구 입니다.

 

만들어 주시면 됩니다.

 

 

src/main/resources

 

밑에 mybatis-config.xml  파일을 하나 만들어 주시면 됩니다.

 

이것도 일일히 설명하기엔 따로 포스팅을 해야 하기 때문에 파일을 올려 드리겠습니다.

 

mybatis-config.xml
0.00MB

xml 파일 하나 입니다. 내용은 없습니다.

 

그래도 내용은 따로 만들자면 

 

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE configuration

    PUBLIC "-//mybatis.org//DTD Config 3.0//EN"

    "http://mybatis.org/dtd/mybatis-3-config.dtd">



<configuration>

	<typeAliases>		
	
	</typeAliases>
</configuration>

 

차후에 내용은 입력할 예정 입니다.

 

이제 다시 프로젝트에서 마우스 오른쪽 Run AS - Run on Server 을 실행 해주세요.

 

 

잘 실행 됩니다.

반응형

'IT 이야기 > 웹프로젝트' 카테고리의 다른 글

1.STS 세팅  (0) 2020.01.15
0.프로젝트 시작  (0) 2020.01.15
tomcat 설치  (0) 2020.01.14
Spring STS(이클립스설치)  (0) 2020.01.14
PuTTY 설치법  (0) 2020.01.10
  Comments,     Trackbacks
1.STS 세팅
반응형

오늘은 STS에서 기본 세팅 먼저 하도록 하겠습니다.

 

기본적으로 meven 기반 웹 프로젝트를 만들 예정 입니다.

 

STS를 실행 후에 화면 상단에 new 버전을 클릭하시고

 

new - spring Legacy project를 클릭 하시면 

 

프로젝트 이름은 LottoProject 라고 지정 하였고 템플릿은 Spring MVC Project를 지정 하였습니다.

 

 

패키지 이름은 com.lotto.web 이라고 지정 하였습니다. 

 

Finish를 클릭 하시면 pom.xml에 의하여 빌드패스를 진행 합니다.

 

자체적으로 쓰는 pom.xml을 공유해 드리겠습니다.

 

따로 설정들을 설정 하기는 진행하지 않도록 하겠습니다.

 

 

<?xml version="1.0" encoding="UTF-8"?>
<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>org.alpreah</groupId>
	<artifactId>demo</artifactId>
	<name>alpreah</name>
	<packaging>war</packaging>
	<version>1.0.0-BUILD-SNAPSHOT</version>
	<properties>
		<java-version>1.8</java-version>
		<org.springframework-version>5.0.4.RELEASE</org.springframework-version>
		<org.aspectj-version>1.6.10</org.aspectj-version>
		<org.slf4j-version>1.6.6</org.slf4j-version>
	</properties>
	<dependencies>
		<!-- Spring -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context</artifactId>
			<version>${org.springframework-version}</version>
			<exclusions>
				<!-- Exclude Commons Logging in favor of SLF4j -->
				<exclusion>
					<groupId>commons-logging</groupId>
					<artifactId>commons-logging</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-webmvc</artifactId>
			<version>${org.springframework-version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-web</artifactId>
			<version>${org.springframework-version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-config</artifactId>
			<version>${org.springframework-version}</version>
		</dependency>
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-taglibs</artifactId>
			<version>${org.springframework-version}</version>
		</dependency>
		<!-- AspectJ -->
		<dependency>
			<groupId>org.aspectj</groupId>
			<artifactId>aspectjrt</artifactId>
			<version>${org.aspectj-version}</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/org.json/json -->
		<dependency>
			<groupId>org.json</groupId>
			<artifactId>json</artifactId>
			<version>20180813</version>
		</dependency>
		<!-- jsoup HTML parser library @ https://jsoup.org/ -->
		<dependency>

			<groupId>org.jsoup</groupId>
			<artifactId>jsoup</artifactId>
			<version>1.10.3</version>
		</dependency>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>2.5</version>
		</dependency>

		<!-- Logging -->
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-api</artifactId>
			<version>${org.slf4j-version}</version>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>jcl-over-slf4j</artifactId>
			<version>${org.slf4j-version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<version>${org.slf4j-version}</version>
			<scope>runtime</scope>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<version>1.2.15</version>
			<exclusions>
				<exclusion>
					<groupId>javax.mail</groupId>
					<artifactId>mail</artifactId>
				</exclusion>
				<exclusion>
					<groupId>javax.jms</groupId>
					<artifactId>jms</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.sun.jdmk</groupId>
					<artifactId>jmxtools</artifactId>
				</exclusion>
				<exclusion>
					<groupId>com.sun.jmx</groupId>
					<artifactId>jmxri</artifactId>
				</exclusion>
			</exclusions>
			<scope>runtime</scope>
		</dependency>
		<!-- 파일업로드라이브러리 -->
		<dependency>
            <groupId>commons-fileupload</groupId>
            <artifactId>commons-fileupload</artifactId>
            <version>1.3.2</version>
        </dependency>
        <dependency>
            <groupId>commons-io</groupId>
            <artifactId>commons-io</artifactId>
            <version>2.5</version>
        </dependency>


		<!-- json-simple -->
		<dependency>
			<groupId>com.googlecode.json-simple</groupId>
			<artifactId>json-simple</artifactId>
			<version>1.1</version>
		</dependency>


		<!-- @Inject -->
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
			<version>1</version>
		</dependency>

		<!-- Servlet -->
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
			<version>2.5</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet.jsp</groupId>
			<artifactId>jsp-api</artifactId>
			<version>2.1</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
			<version>1.2</version>
		</dependency>

		<!-- Test -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>4.7</version>
			<scope>test</scope>
		</dependency>

		<!-- mariaDB -->
		<dependency>
			<groupId>org.mariadb.jdbc</groupId>
			<artifactId>mariadb-java-client</artifactId>
			<version>2.1.1</version>
		</dependency>
		<!-- mariaDB -->

		<!-- Mybatis 3.4.5 -->
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis</artifactId>
			<version>3.4.5</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/org.mybatis/mybatis-spring -->
		<dependency>
			<groupId>org.mybatis</groupId>
			<artifactId>mybatis-spring</artifactId>
			<version>1.3.2</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/org.springframework/spring-jdbc -->
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-jdbc</artifactId>
			<version>5.1.2.RELEASE</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client -->
		<dependency>
			<groupId>org.mariadb.jdbc</groupId>
			<artifactId>mariadb-java-client</artifactId>
			<version>2.3.0</version>
		</dependency>

		<!-- https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind -->
		<dependency>
			<groupId>com.fasterxml.jackson.core</groupId>
			<artifactId>jackson-databind</artifactId>
			<version>2.9.7</version>
		</dependency>

		<!--Multipart File Up&Download -->
		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
			<version>1.3.2</version>
		</dependency>

		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>2.5</version>
		</dependency>





	</dependencies>
	<build>
		<plugins>
			<plugin>
				<artifactId>maven-eclipse-plugin</artifactId>
				<version>2.9</version>
				<configuration>
					<additionalProjectnatures>
						<projectnature>org.springframework.ide.eclipse.core.springnature</projectnature>
					</additionalProjectnatures>
					<additionalBuildcommands>
						<buildcommand>org.springframework.ide.eclipse.core.springbuilder</buildcommand>
					</additionalBuildcommands>
					<downloadSources>true</downloadSources>
					<downloadJavadocs>true</downloadJavadocs>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-compiler-plugin</artifactId>
				<version>2.5.1</version>
				<configuration>
					<source>1.6</source>
					<target>1.6</target>
					<compilerArgument>-Xlint:all</compilerArgument>
					<showWarnings>true</showWarnings>
					<showDeprecation>true</showDeprecation>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>exec-maven-plugin</artifactId>
				<version>1.2.1</version>
				<configuration>
					<mainClass>org.test.int1.Main</mainClass>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>

	
	

 

빌드가 끝나면 실행 하도록 하겠습니다.

 

 

프로젝트를 마우스 오른쪽 클릭 후 Run As - 1.Run on Server를 클릭해 주시면

 

 

저번에 설정해 둔 톰캣이 등장 합니다. Finish 클릭 합니다.

 

 

기본 화면 설정을 해주지 않았군요. 서버는 잘 돌아 갑니다.

 

설정을 바꾸도록 하겠습니다.

 

windows - web Browser - 저는 크롬을 설정 하였습니다.

 

크롬으로 설정 하였습니다.

 

서버는 잘 돌아 가고 있습니다.

 

기본 프로젝트는 끝나었고 다음 번에는 기본 세팅들을 해도록 하겠습니다.

 

감사합니다.

반응형

'IT 이야기 > 웹프로젝트' 카테고리의 다른 글

1. mybits 세팅 및 데이터베이스 생성  (1) 2020.01.17
0.프로젝트 시작  (0) 2020.01.15
tomcat 설치  (0) 2020.01.14
Spring STS(이클립스설치)  (0) 2020.01.14
PuTTY 설치법  (0) 2020.01.10
  Comments,     Trackbacks
0.프로젝트 시작
반응형

우선적으로 로또사이트 동행복권 사이트(https://dhlottery.co.kr/common.do?method=main) 에서

 

번호를 JSOP으로 크롤링 하여 MariaDB에 데이터를 축적하여 Mybits를 이용하여 데이터를 재가공 혹은 SELECT 해서 

 

JSTL로 JSP에 출력 할것 입니다. 그 과정에서 회원 가입 , 회원 로그인 , 게시판 , 랜덤 번호 추첨 , 구글 차트 등을 이용 하여 홈페이지를 만들어서 War 파일으로 export 하여 FileZilla을 이용 하여 Cafe24에 올려서 호스팅 할 예정입니다.

 

많은 기술들 그리고 여러가지 툴들이 쓰일 것입니다. 

 

앞서 포스팅한것 처럼 설치툴들은 설치가 되었고 summernote 은 설치를 하지 않았습니다. 

 

그 이유는 에디터이여서 따로 포스팅은 하지 않았습니다.

 

앞으로는 코드에 대한 설명들을 많이 하게 될것이고 , 주석에 대한 설명들 이야기가 많을 것입니다. 

 

실제로 만들어서 호스팅 하고 있기 때문에 오류가 있지는 않지만 전문적이지 않습니다.

 

전문적인 것을 포스팅하려는 목적이 아니라 JAVA라는 언어로 호스팅 까지를 적는게 목표였기 때문에 전문적인 기술들은 빼 놓고 진행 하겠습니다. 다시 한번 잘 부탁드립니다.

 

감사합니다.

반응형

'IT 이야기 > 웹프로젝트' 카테고리의 다른 글

1. mybits 세팅 및 데이터베이스 생성  (1) 2020.01.17
1.STS 세팅  (0) 2020.01.15
tomcat 설치  (0) 2020.01.14
Spring STS(이클립스설치)  (0) 2020.01.14
PuTTY 설치법  (0) 2020.01.10
  Comments,     Trackbacks
tomcat 설치
반응형

마지막으로 설치는 tomcat으로 마무리 하도록 하겠습니다.

 

 

http://tomcat.apache.org/

 

Apache Tomcat® - Welcome!

The Apache Tomcat® software is an open source implementation of the Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket technologies. The Java Servlet, JavaServer Pages, Java Expression Language and Java WebSocket specifications are

tomcat.apache.org

 

으로 이동 하여 다운로드를 진행 하겠습니다.

 

 

지금 현재 톰갯 버전은 7 부터 9 까지 있습니다.

 

저는 8버전을 사용 하로독 하겠습니다.

 

클릭하시고 페이지 이동 하셔서 스크롤을 내리시게 되면 자신의  윈도우 버전에 맞게 다운받으시면 됩니다.

 

 

압축 해제 해주시고 폴더에 들어 가게 되면 apache-tomcat-8.5.50 이라는 폴더가 생깁니다.

 

여기 까지 하게 되면 톰캣 자체는 설치를 진행하지 않아도 됩니다.

 

윈도우에서는 sts를 연동 하여 진행하면 되기 때문에 설치는 하지 않고 STS랑 연동을 진행하도록 하겠습니다.

 

 

STS를 실행하면 server란에 Pivotal tc Server Developer Edition v4.0 이라는 서버가 존재 하는데 del를 눌러서 삭제하시면 

 

새로 서버를 세팅하라는 문구가 나옵니다 클릭하시면 새로 서버를 세팅 하는 창이 나옵니다.

 

그곳에서 apache라는 곳에서 tomcat8.5 을 선택해주십시요.

 

서버네임등은 자신의 조건에 맞게 설정해주시면 됩니다. 저는 localhost로 지정 하였습니다.

 

Browse.. 를 클릭하셔서 아까 다운받은 곳을 지정해주시면 됩니다.

 

bin ,conf 등 폴더가 보이는 곳을 지정해주시면 됩니다.

 

 

서버 설정이 마무리 되면 서버를 클릭하시고 마우스 오른쪽을 눌러서 start를 클릭 해주시면 

 

윈도우 10일 경우 여러거지 창이 뜹니다.

 

확인을 눌러주시면 

 

 

빨간색으로 server startup in 이라는 문구가 나오게 되면 서버가 제대로 작동 하는 것입니다.

 

이것으로 tomcat 까지 설정이 완료 되었습니다.

 

 

 

 

반응형

'IT 이야기 > 웹프로젝트' 카테고리의 다른 글

1.STS 세팅  (0) 2020.01.15
0.프로젝트 시작  (0) 2020.01.15
Spring STS(이클립스설치)  (0) 2020.01.14
PuTTY 설치법  (0) 2020.01.10
FileZilla (FTP) 설치  (0) 2020.01.10
  Comments,     Trackbacks
Spring STS(이클립스설치)
반응형

저희 프로젝트를 위해 마지막으로 STS를 설치 하도록 하겠습니다.

 

https://spring.io/tools/sts/all

 

Spring Tool Suite™ 3 (STS 3) Download page

Use one of the links below to download an all-in-one distribution for your platform. Choose either a native installer or simple archive, they contain equivalent functionality

spring.io

 

홈페이로 이동 하여 다운로드를 진행 하도록 하겠습니다.

 

노랑색으로 표시한 곳을 클릭 합니다.

 

다운로드한 ZIP 파일을 압축을 해제 하시면 sts-bundle 이라는 폴더가 나옵니다.

 

선택 하시면 3개 정도의 폴더가 또 나오는데 sts-3.9.11.RELEASE 이라는 폴더를 선택 하시면 

 

STS.exe 라는 폴더가 나오는데 이걸 실행 시켜주시면 됩니다.

 

하지만 매번 여기로 찾아오는게 너무 귀찮은 방식이기에 바로가기를 만들어서 바탕화면에 놓도록 하겠습니다.

 

 

저는 바로가기 이름을 프로젝트용이라고 명명 하였습니다.

 

더블 클릭을 진행해주시면 

 

 

이런 창이 뜨는데 Browse.. 을 클릭하여 찾기 쉬운 곳에 위치로 폴더를 변경하도록 하자.

 

 

Launch를 눌러주면 여러가지 설정들을 검색하여 STS가 실행 된다.

 

 

 

이렇게 실행이 된다면 spring 프로젝트 준비가 완료 되었다.

 

 

반응형

'IT 이야기 > 웹프로젝트' 카테고리의 다른 글

0.프로젝트 시작  (0) 2020.01.15
tomcat 설치  (0) 2020.01.14
PuTTY 설치법  (0) 2020.01.10
FileZilla (FTP) 설치  (0) 2020.01.10
HeidSQL(하이드) DB 툴 설치 하기  (0) 2020.01.09
  Comments,     Trackbacks