2021. 1. 2. 11:52

전자정부 프레임워크에서는 MS-SQL에 대한 Script가 존재하지 않는다.

이번 프로젝트는 MS-SQL을 지원해야 해서 Script와 Mapper를 수정해 보았다.

아직은 필요한 부분만 수정을 한 상태라서 모든 mapper를 수정한 것은 아니다.

 

gitlab.com/mobilehunter1/egovframwork_mssql.script

MS SQL 전자정부프레임워크

[pom.xml]

<dependency>
    <groupId>com.microsoft.sqlserver</groupId>
    <artifactId>mssql-jdbc</artifactId>
    <version>8.2.2.jre11</version>
</dependency>

[globals.properties]

Globals.DbType = mssql
Globals.ms.DriverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver 
Globals.ms.Url=jdbc:sqlserver://127.0.0.1:1433;databaseName=mssql 
Globals.ms.UserName=user 
Globals.ms.Password=password

[context-datasource.xml]

<beans profile="mssql">
    <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close">
        <property name="driverClassName" value="${Globals.ms.DriverClassName}"/>
        <property name="url" value="${Globals.ms.Url}" />
        <property name="username" value="${Globals.ms.UserName}"/>
        <property name="password" value="${Globals.ms.Password}"/>     
    </bean>
</beans>
 

Kyounghwan Kwon / egovframwork_mssql.script

GitLab.com

gitlab.com

 

Posted by 모바일헌터
2020. 12. 3. 02:03

logout도 제대로 안된다.

document.getElementById('logoutForm').submit();

 

<form name="logoutForm" id="logoutForm" action="${pageContext.request.contextPath}/egov_security_logout" method="POST">

        <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />

</form>

 

 

enctype="multipart/form-data" 경우 처리문제

www.egovframe.go.kr/uss/olh/qna/QnaInqireCoUpdt.do?qaId=QA_00000000000018185&menu=5&submenu=3

 

묻고 답하기 상세조회 - eGovFrame Portal 온라인 지원 포탈

> 기술 지원 > 묻고 답하기 묻고 답하기

www.egovframe.go.kr

 

Posted by 모바일헌터
2020. 12. 1. 12:02

Big Sur

Big Sur로 업데이트 후에 기존에 사용하던 eclipse를 사용할 수 없게 되어 새로운 버전으로 업그레이드 해야 하고 여전히 개발을 위해 언어를 영어로 변경했다가 한국어로 재변경을 해야만 jdbc연결이 제대로 되고 아직까지도 java application 디스플레이가 뭔가 불안해 보이지만 그래도 깔끔한 UI는 마음에 드네요.

Posted by 모바일헌터
2019. 10. 6. 11:47

String > byte[] > 압축 > byte[] ==[전송]==> byte[] > 압축 해제 > byte[] > String

 

String이 네트워크에서 전송이 된다면 1byte 문자세트를 이용하는 것이 바람직하다.

String > byte[] > 압축 > byte[] > String ==[전송]==> String >  byte[] > 압축 해제 > byte[] > String문제는

new String(baos.toByteArray(), "ISO-8859-1") String ==[전송]==>String :  input.getBytes("ISO-8859-1")

 

입력된 String은 한글이 포함된 UTF-8이라고 가정하여 압축 해제 후에 한글이 깨지지 않게  UTF-8 잊지 마세요....

 

    public static String compress(String input) throws Exception {
        String result = null;
        if (input != null) {
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            GZIPOutputStream gzipos = new GZIPOutputStream(baos);
            gzipos.write(input.getBytes());
            gzipos.close();
            result = new String(baos.toByteArray(), "ISO-8859-1");
            baos.close();
        }
        return result;
    }


    public static String decompress(String input) throws IOException {

        ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(input.getBytes("ISO-8859-1"));
        GZIPInputStream gzipInputStream = new GZIPInputStream(byteArrayInputStream);
        BufferedInputStream bufferedInputStream = new BufferedInputStream(gzipInputStream);
        ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
         
        byte[] buffer = new byte[1024];
         
        int length;
        while((length = bufferedInputStream.read(buffer,0,1024)) > 0) {
            byteArrayOutputStream.write(buffer, 0, length);
        }
         
        bufferedInputStream.close();
        gzipInputStream.close();
        byteArrayInputStream.close();
        byteArrayOutputStream.close();
         
        return byteArrayOutputStream.toString("UTF-8");  
    }

'개발 거들기' 카테고리의 다른 글

해당월의 마지막 날짜 가져오기  (0) 2017.02.22
소스를 블로그에 올릴 때  (0) 2016.05.12
ATOM에서 TODO관리하기  (0) 2015.12.21
git 로컬 저장소 생성(.git 폴더)  (0) 2015.01.14
git 수정사항 확인  (0) 2015.01.14
Posted by 모바일헌터
2019. 7. 23. 11:47

DELETE FROM 테이블명

WHERE ROWID IN (

SELECT ROWID FROM (

SELECT * FROM (

SELECT ROW_NUMBER() OVER(PARTITION BY 컬럼명 ORDER BY 컬럼명) AS num

FROM 테이블명

)

WHERE num > 1 (-> num의 값이 1초과인 데이터들만 삭제)

)

);


출처: https://rahm.tistory.com/52 [RAHM]

 

SELECT ROWID FROM (
SELECT * FROM (
SELECT ROW_NUMBER() OVER(PARTITION BY billindex ORDER BY billindex) AS num
FROM billinfo_detail
)
WHERE num > 1
);

Posted by 모바일헌터
2019. 6. 12. 08:43

               URLRewrite = Y,
               URLRewriteConfig = "{webtob_home}/config/rewrite.conf",

 

rewrite.conf를 다음과 같이 생성한다.

http -> https 변경

RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}:$0 [R,L]

 

 
RewriteCond %{HTTPS} !=on
RewriteRule ^/?(.*) https://%{SERVER_NAME}:444:/$1 [L]


*
특정도메인 호출시 특정페이지 이동

RewriteCond %{HTTP_HOST} ^www\.koti\.re\.kr$
RewriteRule ^/$ /index.do [L]

RewriteCond %{HTTP_HOST} ^m\.koti\.re\.kr$
RewriteRule ^/$ /m/index.do [L]

RewriteCond %{HTTP_HOST} ^english\.koti\.re\.kr$
RewriteRule ^/$ /english/index.do [L]

 

* http로 특정  url 호출시 https로 변경
RewriteCond %{REQUEST_URI} /login/*
RewriteCond %{SERVER_PORT} 80
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]


RewriteCond %{REQUEST_URI} /user/join/*
RewriteCond %{SERVER_PORT} 80
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]


RewriteCond %{REQUEST_URI} /user/purchase/*
RewriteCond %{SERVER_PORT} 80
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

 

Posted by 모바일헌터
2019. 5. 7. 00:32

git clone https://github.com/wnameless/docker-oracle-xe-11g.git

cd docker-oracle-xe-11g/

docker build -t wnameless/oracle-xe-11g .

docker run -d -p 49161:1521 wnameless/oracle-xe-11g

 

 

hostname: localhost

port: 49161

sid: xe

username: system

password: oracle

Posted by 모바일헌터
2019. 1. 24. 16:56

Alliance Honor : 연명 명애 - 히어로 코인

1. 연맹에 기부를 많이 하시거나

2. 지옥 문 키를 기증하시거나

3. 이벤트에 참여를 하셔서도 얻을 수 있습니다.


킹덤 병원에서 치료를 할 때 필요하니 무조건 낭비는 금물!!!


돌콩님왈 : 상점은 개인이 모은 히어로코인으로 구입가능한 항목 ㅋㅋㅋ


돌콩님왈: 아템 목록은 필요하다고 R4이상 운영진에게 요구하시면 히어로 명예로 상점에 구입해 놓을수 있는 항목염 ㅋㅋㅋ





https://www.gamesguideinfo.com/guns-of-glory/shop/2240000009-Alliance-Store


Posted by 모바일헌터
2019. 1. 22. 13:25
  • 야포

야포의 경우 다른 병력에 비해서 생명력/공격력이 높지만 이동 속도가 낮아서 장거리 이동 전투에서는 배제하는 편이다.



  • 기마병


  • 파이크병


  • 추적병

추적병의 속도도 그렇게 빠르진 않네요. (생명력/공격력/방어력 모두 낮은 듯...)




Posted by 모바일헌터
2019. 1. 22. 13:11

* 아카데미 > 연구 > 전투 > 행군슬롯 I, II, III  : 행군을 할 수 있는 슬롯 숫자를 증가 시켜 준다.


* 아카데미 > 연구 > 전투 > 행군 인원 한도 I, II, III, IV : 행군 슬룻당 인원 한도를 증가시켜 준다.


'낙서장 > Guns of Glory' 카테고리의 다른 글

연맹 > 히어로 상점 > 상점 & 아이템 목록  (0) 2019.01.24
병력에 관하여  (0) 2019.01.22
Posted by 모바일헌터