상세 컨텐츠

본문 제목

JSP (JavaServerPage) 설정

FrontEnd/JSP (JavaServerPage)

by H_Develop 2022. 8. 16. 16:39

본문

C:\UI-1\apache-tomcat-8.5.81\conf  파일 안에서

 

 

server.xml

 

    <Connector port="9090" protocol="HTTP/1.1"
               URIEncoding="utf-8"
               connectionTimeout="20000"
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443" />
(port="8080"을 port="9090"으로 바꾼다. Oracle 같은 것들과 충돌을 예방하기 위해서)
URIEncoding="utf-8" 추가.

    <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
               maxThreads="150" SSLEnabled="true" >
        <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
        <SSLHostConfig>
(port="8443"를 port="8080"으로 변경)

 

 

context.xml

<!-- The contents of this file will be loaded for each web application -->
<Context privileged="true" reloadable="true">
privileged="true" reloadable="true" 추가
privileged="true" 하나의 Context에 대한 접근 권한
reloadable="true" 서버를 껏다 키지 않아도 변경사항이 자동으로 반영된다.

 

 

eclipse

windows preferences general workspace
text file encoding > other > utf-8

windows preferences general webbrowser
check the Chrome

windows preferences server runtime_enviroments
check the Apache Tomcat

windows preferences web CSS_Files
Encoding > ISO 10646/Unicode(UTF-8)
Client 에서 Server로 넘어갈 때, encoding

windows preferences web HTML_Files
Encoding > ISO 10646/Unicode(UTF-8)

windows preferences web JSP_Files
Encoding > ISO 10646/Unicode(UTF-8)

관련글 더보기