<url-pattern> 


 

<url-pattern> 요소는 필터가 적용될 URL 패턴을 지정하는 데 사용된다. 

 

  • '/*' : 모든 URL에 대해 필터가 적용된다.

모든 요청에 대해 필터가 적용되어야 할 때 사용되므로 일괄적으로 인코딩 설정이나 보안 등을 적용할 수 있다.

하지만 부하를 초래할 수 있으므로 필요한 경우에만 사용하는 것이 좋다. 

 

  • '/some/*' : "/some/"으로 시작하는 모든 URL에 대해 필터가 적용된다.

 

  • '*.do' : 확장자가 ".do"로 끝나는 모든 URL에 대해 필터가 적용된다.

 

 

1. 이클립스 설정

 초기설정에서 이미 완료된 부분

 

2. web.xml 에 Character Encoding Filter 추가

web.xml 파일 servlet-mapping 하단에 추가한다.

Character Encoding Filter를 추가하여 요청과 응답의 문자 인코딩을 설정한다. 이 필터는 요청의 문자 인코딩을 설정하고응답의 문자 인코딩을 변경하는 데 사용된다. 대부분 UTF-8로 설정하며 이를 통해 한글깨짐 문제를 방지할 수 있다.

 

	<filter>
		<filter-name>encofingFilter</filter-name>
		<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
		<init-param>
			<param-name>encoding</param-name>
			<param-value>UTF-8</param-value>
		</init-param>
	</filter>
	<filter-mapping>
		<filter-name>encodingFilter</filter-name>
		<url-pattern>/*</url-pattern>
	</filter-mapping>

 

<url-pattern>

https://saintclair.tistory.com/277

 

3. home.jsp 파일 상단에 태그 추가

jsp 페이지의 인코딩을 UTF-8로 설정하는 페이지 태그를 추가한다.

<%@ page language="java" contentType="text/html; character=utf-8" pageEncoding="UTF-8" %>

 

 

 

에러 : Template이 URL을 통해 다운로드가 되어야 하는데 에러가 나면서 다운로드가 안되는 상황이다.

 

 

해결 : 참고 페이지의 zip 파일을 다운받아 
sts3 > workspace > .metadate > .sts > content > org.springframework.templates.mvc-3.2.2에 넣으면 해결된다.

 

MVC 없음 / 템플릿 다운로드 불가 의 경우 수동으로 파일을 넣어주면 된다.

 

MVC 없음의 경우 필요한 파일이 해당 위치에 없기 때문에 발생하는 에러라서 내가 필요한 파일을 해당 위치에 넣어주면 해결되는 것이고, invalid thread access, download of template~ 의 경우는 템플릿 다운로드가 진행되지 않는 상황이기 때문에 해당 템플릿을 기존 프로젝트에서 복사해 다운로드 폴더에 넣어주면 해결되는 것이다. 

 

*참고페이지에서 템플릿 파일을 다운로드 받아 압축을 풀고 해당 폴더에 넣어준 후 프로그램을 재실행하면 된다. 

https://nirsa.tistory.com/405

 

 

'Backend > 기타' 카테고리의 다른 글

<url-pattern>  (0) 2024.05.31
[Spring] 한글깨짐 에러  (0) 2024.05.31
[에러] Spring MVC Template 없음  (0) 2024.05.31
전자정부프레임 압축풀기 에러  (0) 2024.05.30
[Eclipse 실행 에러] an error has occurred. see the log file  (0) 2024.05.29

 

다시 맞닥뜨린 Template 문제.

그동안은 잘 사용했는데 노트북 바꾸고 다시 설치하려니 또 안되는 현상.

다운받은 프로그램 버전이랑 다 확인하고 재설치해도 안된다.

 

  • STS3를 홈페이지에서 다시 다운로드 받아 재설치 
  • sts 폴더 하위 폴더 workspace > .metadata > plugins > org.springsource.ide.eclipse.commons.content.core 를 찾아 https-content.xml 일을 넣어주니 해결
  • 자동으로 다운로드 되지 않으니 수동으로 주입하는 방식으로 해결되었다.

 

전자정부프레임워크를 사용할 때는 저 폴더 자체가 없어서 그래 하는 김에 MVC 구조도 익힐 겸 수동생성 해보자 해서 진행했는데 아무래도 앞으로 프로젝트 만드는데 불편함이 있을 것 같아 해결책을 찾게 되었다. 해당 파일은 구글링 해보면 나온다.

 

 

https-content.xml

더보기

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<descriptors>
    <descriptor id="org.springframework.templates.mvc" kind="template" local="true" name="Spring MVC Project" requiresbundle="org.eclipse.m2e.core" size="0" version="3.2.2">
        <description>A new Spring MVC web application development project</description>
    </descriptor>
    <descriptor category="GemFire" id="org.springframework.data.gemfire.template.standalone" kind="template" local="false" name="Spring Data GemFire Project (Standalone)" requires="[3.0.0,4.0)" size="7467" url="https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/gemfire-standalone-sts-template-1.0.1.RELEASE.zip" version="1.0.1.RELEASE">
        <description>Creates a Spring Data GemFire project with an embedded cache and one region that runs as a standalone Java application.</description>
    </descriptor>
    <descriptor category="GemFire" id="org.springframework.data.gemfire.template.server.standalone" kind="template" local="false" name="Spring Data GemFire Cache Server Project (Standalone)" requires="[3.0.0,4.0)" size="7582" url="https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/gemfire-server-sts-template-1.0.1.RELEASE.zip" version="1.0.1.RELEASE">
        <description>Creates a GemFire Cache Server project with a cache server, embedded cache and one region that runs as a standalone Java application.</description>
    </descriptor>
    <descriptor category="GemFire" id="org.springframework.data.gemfire.template.server.war" kind="template" local="false" name="Spring Data GemFire Cache Server Project (WAR)" requires="[3.0.0,4.0)" size="7543" url="https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/gemfire-server-war-sts-template-1.0.1.RELEASE.zip" version="1.0.1.RELEASE">
        <description>Creates a GemFire Cache Server project with a cache server, embedded cache and one region that runs as a web application.</description>
    </descriptor>
    <descriptor category="GemFire" id="org.springframework.data.gemfire.template.client" kind="template" local="false" name="Spring Data GemFire Client Project" requires="[3.0.0,4.0)" size="7881" url="https://raw.github.com/SpringSource/spring-data-gemfire-sts-templates/master/builds/gemfire-client-sts-template-1.0.1.RELEASE.zip" version="1.0.1.RELEASE">
        <description>Creates a Spring Data GemFire project with a client cache and client region that runs as a standalone Java application.</description>
    </descriptor>
    <descriptor id="cohttp://m.springsource.sts.org.apache.tomcat" kind="server" local="false" name="Apache Tomcat 6.0.20" size="6282517" url="https://dist.springsource.com/release/STS/help/com.springsource.sts.org.apache.tomcat-6.0.20.20090615-0000.zip" version="6.0.20.20090615-0000">
        <description/>
    </descriptor>
    <descriptor category="Batch" id="org.springframework.samples.batch.admin.web" kind="template" local="false" name="Spring Batch Admin Webapp" requiresbundle="org.eclipse.m2e.core" size="21532" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.batch.admin.web-2.3.3.zip" version="2.3.3">
        <description>A WAR project for a Spring Batch Admin web application with simple custom job</description>
    </descriptor>
    <descriptor id="org.springframework.samples.batch.simple" kind="template" local="false" name="Simple Spring Batch Project" requires="[0.0.0,2.8.0)" size="14198" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.batch.simple-2.3.5.zip" version="2.3.5">
        <description>A simple project that shows how to use Spring Batch with a reader and a writer in a single step job</description>
    </descriptor>
    <descriptor category="Batch" id="org.springframework.samples.batch.simple" kind="template" local="false" name="Simple Spring Batch Project" requires="2.8.0" requiresbundle="org.eclipse.m2e.core" size="13698" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.batch.simple-2.4.2.zip" version="2.4.2">
        <description>A simple project that shows how to use Spring Batch with a reader and a writer in a single step job</description>
    </descriptor>
    <descriptor id="org.springframework.templates.mvc" kind="template" local="false" name="Spring MVC Project" requires="[0.0.0,2.8.0)" size="17198" url="https://dist.springsource.com/release/STS/help/org.springframework.templates.mvc-3.0.18.zip" version="3.0.18">
        <description>A new Spring MVC web application development project</description>
    </descriptor>
    <descriptor id="org.springframework.templates.mvc" kind="template" local="false" name="Spring MVC Project" requires="2.8.0" requiresbundle="org.eclipse.m2e.core" size="16608" url="http://wisejia.iptime.org:8000/org.springframework.templates.mvc-3.2.2.zip" version="3.2.2">
        <description>A new Spring MVC web application development project</description>
    </descriptor>
    <descriptor id="org.springframework.samples.spring.hibernate" kind="template" local="false" name="Simple Spring Hibernate Utility Project" requires="[0.0.0,2.8.0)" size="14052" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.spring.hibernate-2.5.1.zip" version="2.5.1">
        <description>A simple jar project that has some Spring and Hibernate configuration and an integration test</description>
    </descriptor>
    <descriptor category="Persistence" id="org.springframework.samples.spring.hibernate" kind="template" local="false" name="Simple Spring Hibernate Utility Project" requires="2.8.0" requiresbundle="org.eclipse.m2e.core" size="14081" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.spring.hibernate-2.6.2.zip" version="2.6.2">
        <description>A simple jar project that has some Spring and Hibernate configuration and an integration test</description>
    </descriptor>
    <descriptor id="org.springframework.samples.spring.jpa" kind="template" local="false" name="Simple Spring JPA Utility Project" requires="[0.0.0,2.8.0)" size="15587" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.spring.jpa-2.3.3.zip" version="2.3.3">
        <description>A simple jar project that has some Spring and JPA configuration and an integration test.</description>
    </descriptor>
    <descriptor category="Persistence" id="org.springframework.samples.spring.jpa" kind="template" local="false" name="Simple Spring JPA Utility Project" requires="2.8.0" requiresbundle="org.eclipse.m2e.core" size="15075" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.spring.jpa-2.4.2.zip" version="2.4.2">
        <description>A simple jar project that has some Spring and JPA configuration and an integration test.</description>
    </descriptor>
    <descriptor id="org.springframework.samples.spring.utility" kind="template" local="false" name="Simple Spring Utility Project" requires="[0.0.0,2.8.0)" size="12666" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.spring.utility-2.5.1.zip" version="2.5.1">
        <description>A simple jar project that has some Spring configuration and an integration test</description>
    </descriptor>
    <descriptor id="org.springframework.samples.spring.utility" kind="template" local="false" name="Simple Spring Utility Project" requires="2.8.0" requiresbundle="org.eclipse.m2e.core" size="12684" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.spring.utility-2.6.1.zip" version="2.6.1">
        <description>A simple jar project that has some Spring configuration and an integration test</description>
    </descriptor>
    <descriptor id="org.springframework.samples.petclinic" kind="sample" local="false" name="PetClinic" size="21722686" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.petclinic-2.5.0.20080208-1600.zip" version="2.5.0.20080208-1600">
        <description/>
    </descriptor>
    <descriptor id="org.springframework.samples.springtravel" kind="sample" local="false" name="SpringTravel" size="4409712" url="https://dist.springsource.com/release/STS/help/org.springframework.samples.springtravel-2.5.2.20000702-1000.zip" version="2.5.2.20000702-1000">
        <description/>
    </descriptor>
    <descriptor category="Spring Security" id="org.springframework.security.tutorials.basicsecurity" kind="tutorial" local="false" name="Securing your web application with Spring Security" size="4759272" url="https://dist.springsource.com/release/STS/help/org.springframework.security.tutorials.basicsecurity-1.0.0.zip" version="1.0.0">
        <description>This tutorial shows how to configure simple role-based security for a standard web application.</description>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorial.WhatsNewIn25" kind="tutorial" local="false" name="What's new in Spring 2.5" size="13310" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorial.WhatsNewIn25-1.0.0.zip" version="1.0.0">
        <description>This cheat sheet demonstrates key concepts that are new in Spring 2.5.</description>
        <dependency id="org.springframework.samples.petclinic"/>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorials.addingManagementToYourSpringApplications" kind="tutorial" local="false" name="Adding Management to Your Spring Applications" size="15440" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorials.addingManagementToYourSpringApplications-1.0.0.zip" version="1.0.0">
        <description>This tutorial demonstrates how to instrument your Spring applications for management using Spring, JMX and AOP.</description>
        <dependency id="org.springframework.samples.petclinic"/>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorials.gettingstartedwithspringjdbc" kind="tutorial" local="false" name="Getting Started with Spring JDBC" size="8568468" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorials.gettingstartedwithspringjdbc-1.0.1.zip" version="1.0.1">
        <description>This tutorial shows how to get started using Spring JDBC for simple data access.</description>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorials.jms.creatingmdb" kind="tutorial" local="false" name="Creating JMS-enabled Spring application" size="3675267" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorials.jms.creatingmdb-1.0.0.zip" version="1.0.0">
        <description>This tutorial provides an overview of JMS features with the Spring Framework.</description>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorials.junit.integrationtestingwithjunit4" kind="tutorial" local="false" name="Integration Testing with JUnit 4" size="7429423" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorials.junit.integrationtestingwithjunit4-1.0.0.zip" version="1.0.0">
        <description>This tutorial will walk developers through the process of creating a JUnit 4 integration test.</description>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorials.testing.junit3-legacy" kind="tutorial" local="false" name="Integration Testing with JUnit 3 and Spring" size="7438660" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorials.testing.junit3-legacy-1.0.0.zip" version="1.0.0">
        <description>This tutorial will show you how to implement integration tests using the Spring JUnit 3.8 testing framework.</description>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorials.testing.junit3" kind="tutorial" local="false" name="Integration Testing with JUnit 3 and the Spring TestContext Framework" size="7432757" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorials.testing.junit3-1.0.0.zip" version="1.0.0">
        <description>This tutorial will show you how to implement integration tests using the Spring 2.5+ TestContext framework and JUnit 3.</description>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorials.txmgmt.addingtxmangagement" kind="tutorial" local="false" name="Adding Declarative Transaction Management to Your Spring Applications" size="3939660" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorials.txmgmt.addingtxmangagement-1.0.0.zip" version="1.0.0">
        <description>his tutorial demonstrates how to apply Spring's support for declarative transaction management.</description>
    </descriptor>
    <descriptor category="Spring Framework" id="org.springframework.tutorials.usingstoredprocedures" kind="tutorial" local="false" name="Using Stored Procedures" size="6387472" url="https://dist.springsource.com/release/STS/help/org.springframework.tutorials.usingstoredprocedures-1.0.0.zip" version="1.0.0">
        <description>A tutorial for getting started using stored procedures.</description>
    </descriptor>
    <descriptor category="Spring Web" id="org.springframework.web.tutorials.creatingcontroller" kind="tutorial" local="false" name="Creating a Controller" size="26558" url="https://dist.springsource.com/release/STS/help/org.springframework.web.tutorials.creatingcontroller-1.0.0.zip" version="1.0.0">
        <description>This tutorial will walk developers through the process of creating a @Controller to implement a basic use case end-to-end.</description>
        <dependency id="org.springframework.samples.springtravel"/>
    </descriptor>
    <descriptor category="Spring Web" id="org.springframework.web.tutorials.webprojectoverview" kind="tutorial" local="false" name="Spring Web Development Overview" size="27161" url="https://dist.springsource.com/release/STS/help/org.springframework.web.tutorials.webprojectoverview-1.0.0.zip" version="1.0.0">
        <description>This tutorial provides an overview of web development with the Spring Framework.</description>
        <dependency id="org.springframework.samples.springtravel"/>
    </descriptor>
    <descriptor id="org.springframework.webflow.samples.booking.jsf" kind="sample" local="false" name="Hotel Booking Reference App (Spring MVC + Web Flow + JavaServerFaces version)" size="13644612" url="https://dist.springsource.com/release/STS/help/org.springframework.webflow.samples.booking.jsf-2.0.7.20090423-1700.zip" version="2.0.7.20090423-1700">
        <description/>
    </descriptor>
    <descriptor category="Spring Web Flow" id="org.springframework.webflow.tutorial.GetStarted" kind="tutorial" local="false" name="Get Started with Spring Web Flow" size="8709" url="https://dist.springsource.com/release/STS/help/org.springframework.webflow.tutorial.GetStarted-1.0.0.zip" version="1.0.0">
        <description>Learn how to use the Web Flow framework in your Spring application.</description>
        <dependency id="org.springframework.webflow.samples.booking.jsf"/>
        <dependency id="cohttp://m.springsource.sts.org.apache.tomcat"/>
    </descriptor>
    <descriptor category="Spring Web Services" id="org.springframework.webservices.tutorials.creatingcontroller" kind="tutorial" local="false" name="Creating a contract-first web service" size="9741990" url="https://dist.springsource.com/release/STS/help/org.springframework.webservices.tutorials.creatingcontroller-1.0.0.zip" version="1.0.0">
        <description>This tutorial shows you how to create a contract-first web service with Spring-WS. The contract-first approach is an industry recognized best practice. In short it means we'll design an XML contract first and a Java implementation second.</description>
        <dependency id="cohttp://m.springsource.sts.org.apache.tomcat"/>
    </descriptor>
    <descriptor category="Integration" id="org.springframework.integration.sts.template.standalone.simple" kind="template" local="false" name="Spring Integration Project (Standalone) - Simple" requires="[3.0.0,4.0)" requiresbundle="org.eclipse.m2e.core" size="9500" url="https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-standalone-simple-1.0.1.RELEASE.zip" version="1.0.1.RELEASE">
        <description>Creates a Spring Integration project that runs as a standalone Java application using core components only.</description>
    </descriptor>
    <descriptor category="Integration" id="org.springframework.integration.sts.template.standalone" kind="template" local="false" name="Spring Integration Project (Standalone) - File" requires="[3.0.0,4.0)" requiresbundle="org.eclipse.m2e.core" size="12100" url="https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-standalone-1.0.1.RELEASE.zip" version="1.0.1.RELEASE">
        <description>Creates a Spring Integration project that runs as a standalone Java application using file polling and file output.</description>
    </descriptor>
    <descriptor category="Integration" id="org.springframework.integration.sts.template.war" kind="template" local="false" name="Spring Integration Project (War)" requires="[3.0.0,4.0)" requiresbundle="org.eclipse.m2e.core" size="155900" url="https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-war-1.0.1.RELEASE.zip" version="1.0.1.RELEASE">
        <description>Creates a Spring Integration project that runs within a servlet container. Uses the Spring Integration Twitter adapter.</description>
    </descriptor>
    <descriptor category="Integration" id="org.springframework.integration.sts.template.adapter" kind="template" local="false" name="Spring Integration Adapter Template Project" requires="[3.2.0,4.0)" requiresbundle="org.springsource.ide.eclipse.gradle.core" size="122100" url="https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-adapter-1.0.1.RELEASE.zip" version="1.0.1.RELEASE">
        <description>Creates a Spring Integration Adapter Template. Requires Gradle Support.</description>
    </descriptor>
    <descriptor category="Integration" id="org.springframework.integration.sts.template.adapter" kind="template" local="false" name="Spring Integration Adapter Template Project" requires="[3.0.0,3.2)" size="118119" url="https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-adapter-1.0.0.M4.zip" version="1.0.0.M4">
        <description>Creates a Spring Integration Adapter Template. Requires Gradle Support. Deprecated, please update STS to version 3.2+ for the latest template version</description>
    </descriptor>
    <descriptor id="org.springframework.integration.sts.template.standalone.simple" kind="template" local="false" name="Spring Integration Project (Standalone) - Simple" requires="[0.0.0,3.0.0)" size="8390" url="https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-standalone-simple-1.0.0.M2.zip" version="1.0.0.M2">
        <description>Creates a Spring Integration project that runs as a standalone Java application using core components only. Deprecated, please update STS to version 3.2+ for the latest template version</description>
    </descriptor>
    <descriptor id="org.springframework.integration.sts.template.standalone" kind="template" local="false" name="Spring Integration Project (Standalone) - File" requires="[0.0.0,3.0.0)" size="10258" url="https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-standalone-1.0.0.M2.zip" version="1.0.0.M2">
        <description>Creates a Spring Integration project that runs as a standalone Java application using file polling and file output. Deprecated, please update STS to version 3.2+ for the latest template version</description>
    </descriptor>
    <descriptor id="org.springframework.integration.sts.template.war" kind="template" local="false" name="Spring Integration Project (War)" requires="[0.0.0,3.0.0)" size="56242" url="https://raw.github.com/SpringSource/spring-integration-templates/master/si-sts-templates/builds/si-template-war-1.0.0.M2.zip" version="1.0.0.M2">
        <description>Creates a Spring Integration project that runs within a servlet container. Uses the Spring Integration Twitter adapter. Deprecated, please update STS to version 3.2+ for the latest template version</description>
    </descriptor>
    <descriptor id="org.springframework.templates.mvc" kind="template" local="true" name="Spring MVC Project" requiresbundle="org.eclipse.m2e.core" size="0" version="3.2.2">
        <description>A new Spring MVC web application development project</description>
    </descriptor>
    <descriptor id="org.springframework.templates.mvc" kind="template" local="true" name="Spring MVC Project" requiresbundle="org.eclipse.m2e.core" size="0" version="3.2.2">
        <description>A new Spring MVC web application development project</description>
    </descriptor>
</descriptors>

 

 

 

 

전자정부프레임 압축풀기 에러


 

알집도 에러나서 반디집으로 압축풀기 진행하니 해결완료.

 

 

Eclipse를 새로운 노트북에 재설치 후 실행하는데 에러발생

javaw.exe 경로변경과 이클립스 ini 파일로 초기설정을 진행하다보니 발생한 에러인줄 알았는데 아니었다.

에러문구와 config 폴더에 위치한 파일 이름을 띄우길래 파일내용을 확인해봤더니 JDK 버전 문제였다.

JDK 17 버전으로 다운로드 받아서 설정하고나니 해결됨

(환경변수도 재설정 해야한다~)

 

전에 환경변수 설정할 때는 위치경로를 전부 입력했는데 %%를 사용하니 훨씬 간편해졌다.

 

 

 

 

JDK 

(Java Development kit)

 


 

자바 개발 키트. 자바를 개발하는데 필요한 자바 컴파일러(Javac), 자바가상머신(JVM), 각종 Java Library 등을 포함하고 있다. 기능들이 들어있는 키트라고 보면된다. 면 JRE가 포함되어 있다. JDK를 활용하여 자바 기능을 사용하고 컴파일 해서 보다 편리하게 개발을 진행할 수 있다.

 

 

 

JRE

(Java Runtime Environmont) 


 

자바 실행환경. 자바 프로그램을 실행하는데 필요하다. 개발된 자바 프로그램을 실행하기 위해 일반 사용자가 설치한다. 

 

https://www.draw.io/ 

 

Flowchart Maker & Online Diagram Software

Flowchart Maker and Online Diagram Software draw.io is free online diagram software. You can use it as a flowchart maker, network diagram software, to create UML online, as an ER diagram tool, to design database schema, to build BPMN online, as a circuit d

app.diagrams.net

 


Primary key 


- 테이블의 대표 key

- key에 해당하는 컬럼은 not null 이어야 함.(null은 불가)

- 테이블의 식별자 역할을 하는 제약조건으로 하나의 테이블에 하나의 PK만 존재할 수 있다.

2개의 컬럼이 PK에 해당될 때도 있는데 중복되지 않은 컬럼이기 때문에 가능하며 존재하는 하나의 PK에 2개의 컬럼이 포함되는 것이기 때문에 PK는 하나로 볼 수 있다.

 

테이블 생성시 마지막 구문에 

PRIMARY KEY (컬럼1, 컬럼2) 를 입력해주면 정상적으로 생성된다.

 

 

 

 

 


Unique Key, Unique Index


- 테이블 내 유일해야 하는 값이며 값의 중복을 허용하지 않는다.

- NULL값 허용

- 하나의 테이블에 여러 개 생성 가능

 

 

 

 

 

 

 

스프링 플젝 준비하다 이클립스 사용할 일이 생겨 실행하는데 에러가 났다.

아예 열리지도 않는 걸 보니 ini 파일 문제일 것 같아서 열어봤는데

라이브러리 경로를 보니 p2 폴더 내부였다. 

스프링 플젝 준비하면서 레포지토리 경로 때문에 m2 폴더를 정리한다는 게 p2 폴더를 건드린 적이 있었는데 

그 때 p2 폴더 내부 파일을 새로 생성한 폴더에 정리한답시고 넣어둔 게 문제였다.

다시 꺼내서 p2 폴더에 넣어주니 실행된다.

 

+ Recent posts