Spring boot(undertow) 불필요한 웹 메서드(HTTP Method) 제거
1. Spring Boot Application 소스에 아래 내용 추가
2. 재기동 시 아래 로그를 확인.
io.undertow.servlet : UT015020: Path /* is secured for some HTTP methods, however it is not secured for [TRACE, POST, GET, CONNECT]
3. 점검결과 DELETE Method 가 차단된 걸 확인할 수 있습니다.
'Progamming > Spring' 카테고리의 다른 글
[Spring boot] lombok 에러 The method getExample() is undefined for the type Test test.java (0) | 2020.09.28 |
---|---|
[Spring boot] War 파일 생성 (Gradle) (0) | 2020.09.24 |
[이클립스] 스프링부트 서버 종료안되는 문제 해결 (0) | 2020.05.25 |
[이클립스] 스프링부트 서버 종료안되는 문제 해결
이클립스에서 mvn spring-boot:run 실행 후 종료했는데 다시 실행이 안되는 경우 아래와 같이 설정을 바꿔주면 됩니다.
pom.xml 에서 spring-boot-maven-plugin 의 configuration안에 <fork>false</fork>추가
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<addResources>true</addResources>
<executable>true</executable>
<fork>false</fork>
<!--
Enable the line below to have remote debugging of your application on port 5005
-->
<jvmArguments>-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005</jvmArguments>
<arguments>
<argument>spring.profiles.active=dev</argument>
</arguments>
</configuration>
</plugin>
'Progamming > Spring' 카테고리의 다른 글
[Spring boot] lombok 에러 The method getExample() is undefined for the type Test test.java (0) | 2020.09.28 |
---|---|
[Spring boot] War 파일 생성 (Gradle) (0) | 2020.09.24 |
Spring boot(undertow) 불필요한 웹 메서드(HTTP Method) 제거 (0) | 2020.07.21 |
Git에서 변경된 파일 다운로드
윈도우에서 Tortoise Git을 사용하여 변경된 파일을 내려받을 수 있습니다.
Tortoise Git 다운로드(https://tortoisegit.org/download/)
1. TortoiseGit > Show log 나 Diff 를 선택한 후
2. 파일 선택 후 Export selection to.. 를 선택하게 되면 해당 파일들을 폴더 구조로 내려받을 수 있습니다.
'Progamming > 기타' 카테고리의 다른 글
윈도우2008서버 SMTP설정 (0) | 2012.07.04 |
---|
MSSQL 로그 사이즈 줄이기
exec sp_helpfile;
alter database test_db set recovery simple;
dbcc shrinkfile(test_db_log,100);
alter database test_db set recovery full;
'Progamming > DB' 카테고리의 다른 글
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
---|---|
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
MS-SQL 검색결과 제한하기 (0) | 2015.04.06 |
MSSQL 테이블 복사 (0) | 2015.04.06 |
MSSQL UPDATE,DELETE ... FROM (0) | 2015.04.06 |
MS-SQL 검색결과 제한하기
<SET ROWCOUNT n >
SET ROWCOUNT 10
select * from Table1
delete from Table1
(10개 행 적용됨)
- SET ROWCOUNT 옵션은 다은 SET ROWCOUNT 옵션을 만나기 전까지 속성이 유지된다.
- 옵션 해제 : SET ROWCOUNT 0
<TOP n >
select top 10 * from Table1 order by seq
select top 50 percent * from Table1 order by seq
select top 50 percent with ties * from Table1 order by seq (WITH TIES 동률계산)
'Progamming > DB' 카테고리의 다른 글
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
---|---|
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
MSSQL 로그 사이즈 줄이기 (0) | 2015.04.17 |
MSSQL 테이블 복사 (0) | 2015.04.06 |
MSSQL UPDATE,DELETE ... FROM (0) | 2015.04.06 |
MSSQL 테이블 복사
<테이블생성,데이터복사>
select * into 생성할테이블 FROM 복사할대상테이블
<데이터복사>
insert into 생성할테이블 SELECT * 복사할대상테이블
<테이블 구조만 복사>
select * into 생성할테이블 FROM 복사할대상테이블 where 1=2
'Progamming > DB' 카테고리의 다른 글
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
---|---|
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
MSSQL 로그 사이즈 줄이기 (0) | 2015.04.17 |
MS-SQL 검색결과 제한하기 (0) | 2015.04.06 |
MSSQL UPDATE,DELETE ... FROM (0) | 2015.04.06 |
MSSQL UPDATE,DELETE ... FROM
update Table1
set col = b.col
from Table1 a, Table2 b
where a.emp_no= b.emp_no and b.year = 2015
delete a
from Table1 a, Table2 b
where a.emp_no= b.emp_no and b.year = 2015
'Progamming > DB' 카테고리의 다른 글
MYSQL my.cnf 설정 가이드 (0) | 2022.02.21 |
---|---|
MYSQL 컬럼 구조 조회 (0) | 2022.02.09 |
MSSQL 로그 사이즈 줄이기 (0) | 2015.04.17 |
MS-SQL 검색결과 제한하기 (0) | 2015.04.06 |
MSSQL 테이블 복사 (0) | 2015.04.06 |
[LDAP SSL]Connection
public LDAPConnection getSSLConnection()throws AppException{
LDAPConnection ldapConn = null;
try{
java.security.Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
netscape.ldap.factory.JSSESocketFactory jssesocket = new netscape.ldap.factory.JSSESocketFactory(null);
ldapConn = new LDAPConnection(jssesocket);
ldapConn.connect(conf.getString("com.ldap.connect.ip.first"), conf.getInt("com.ldap.connect.port"));
ldapConn.authenticate(conf.getString("com.ldap.connect.id"), conf.getString("com.ldap.connect.pw"));
if(ldapConn == null || !ldapConn.isConnected()){
ldapConn = new LDAPConnection();
ldapConn.connect(conf.getString("com.ldap.connect.ip.second"), conf.getInt("com.ldap.connect.port"));
ldapConn.authenticate(conf.getString("com.ldap.connect.id"), conf.getString("com.ldap.connect.pw"));
}
}catch(Exception ex1){
Log.error("ERROR", this, "LDAPQueryRunner.getConnection() Exception_1" + ex1);
try{
ldapConn = new LDAPConnection();
ldapConn.connect(conf.getString("com.ldap.connect.ip.second"), conf.getInt("com.ldap.connect.port"));
ldapConn.authenticate(conf.getString("com.ldap.connect.id"), conf.getString("com.ldap.connect.pw"));
if(ldapConn == null || !ldapConn.isConnected()){
ldapConn = new LDAPConnection();
ldapConn.connect(conf.getString("com.ldap.connect.ip.first"), conf.getInt("com.ldap.connect.port"));
ldapConn.authenticate(conf.getString("com.ldap.connect.id"), conf.getString("com.ldap.connect.pw"));
}
}catch(Exception ex2){
Log.error("ERROR", this, "LDAPUserSearch.getConnection() Exception" + ex2);
ex2.printStackTrace();
throw new AppException("LDAPUserSearch.getConnection() Exception", ex2);
}
}
return ldapConn;
}
'Progamming > LDAP' 카테고리의 다른 글
[LDAP SSL] TEST (0) | 2012.12.04 |
---|---|
[LDAP SSL]InstallCert (0) | 2012.12.04 |
[LDAP SSL]인증서 생성 (0) | 2012.12.04 |