Homoacademycus

  • Installation
  • TechOpinion
  • TroubleShooting
  • Develop Scripts

oracle11g

February 20, 2021

  1. 컨테이너 백그라운드 실행
    docker run --name=oracle11g2 -d -p 50000:8080 -p 1521:1521 -v /home/clusters/dockerRepo bvives/oracle11g
    
  2. 실행 확인
    docker info
    
  3. 오라클 sqlplus 터미널 모드 실행 ``` docker exec -it oracle11g2 bash root@a94b2fca76c8:# sqlplus
Continue reading

mongodb

February 20, 2021

잘 사용하고 있었는데 갑자기 이게 뜸

(node:13283) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(Use `node --trace-deprecation ...` to show where the warning was created)
Continue reading

memoryAllocation

February 20, 2021

메모리 종류

  1. Stack
    • 메소드 내 지역변수
    • 참조 변수(주소 값 저장)
Continue reading

java install

February 20, 2021

Java openjdk 패키지 설치

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt update
sudo apt install openjdk-11-jre
sudo apt install openjdk-11-jdk
sudo apt install ppa-purge
sudo ppa-purge ppa:openjdk-r/ppa
Continue reading

intelliJ setting

February 20, 2021

eclipse 프로젝트를 IntelliJ 프로젝트로 변환하기

Workspace, Project –> Project, Module 로 이름 대응하여 import

new Project 생성

Graddle > Java, Web

Tomcat Run 설정

Run > Edit Configuration > Tomcat Server > Local > Deployment > + > Artifacts > (exploded)

Enable Annotation Processing

Settings > Build, Execution, Deployment > Compiler > Annotation Processors

build/run using Gradle(default) or IDE

Settings > Build, Execution, Deployment > Build Tools > Gradle

IntelliJ가 Graddle을 default로 run하는 이유 ?
Local PC와 Continuous Integration Server에서 모두 동일한 테스트 결과를 얻기 위해 gradle로 실행

src/main/webapp/WEB-INF/web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://xmlns.jcp.org/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd"
         version="4.0">
    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>/WEB-INF/applicationContext.xml</param-value>
    </context-param>
    <listener>
        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    </listener>

    <servlet>
        <servlet-name>dispatcher</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>/WEB-INF/dispatcher-servlet.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>dispatcher</servlet-name>
        <url-pattern>/</url-pattern>
    </servlet-mapping>

</web-app>
Continue reading
Prev Next

Copyright with Homoacademycus