server2020. 5. 11. 16:04

[ssh]aws 인스턴스 ubuntu 접속 시, Permission denied (publickey) 해결방법

 

pem 키를 만들고 , 접속 할려고 하니까...

 

Permission denied (publickey)

 

그러면

 

pem파일이 있는 폴더로 이동해서...

 

chmod 400 (key이름).pem

 

그러면 들어 갈 수 있다..

Posted by thdeodls85
server2020. 5. 11. 13:55

[ssh]서버 접속 방법

 

ssh 아이디@서버주소 -p포트

 

ex) ssh test@123.0.0.0.1 -p8080

 

Posted by thdeodls85
server2020. 5. 6. 14:27

[spring] https tls 설정 후에, connection lost issue 해결방법

 

https 설정 후에 , db sleep 되는 경우가 생긴다..

 

그러면 서버를 계속 커넥션 맺어줘야 한다..

 

그래서 어떻게 할 수 있을까??

 

@EnableScheduling

class

{

@Scheduled(fixedRate = 60000)

public void method()

{

 // 서버 접속 

}

}

 

1분마다 한번씩 접속 해준다..

 

[참조] https://stackoverflow.com/questions/47301079/how-to-call-a-method-automatically-in-every-seconds-using-spring-boot

 

how to call a method automatically in every seconds using spring boot?

In Spring-boot project, is there a method that want to make it called every seconds automatically? And make an rest-api to set calling term in same project?

stackoverflow.com

 

Posted by thdeodls85
server2020. 4. 29. 17:00

[mybatis] org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException 해결방법

 

한개의 컬럼이 나올 줄 알고 List로 받지 않고 hashmap 으로 받았는데..

 

저번에 테스트 한다고 insert 계속 한 값이 .. 2개 이상의 컬럼으로 받아왔다.. 

 

그러면 toomanyresuTooManyResultsException 나온다..  

Posted by thdeodls85
server2020. 4. 27. 11:42
server2020. 3. 19. 18:52

[Tomcat]Could not publish server configuration for Tomcat v8.5 Server at localhost Multiple contexts have a path of 해결방법

 

Tomcat 프로젝트 -> Server -> server.xml -> 서치 <Context -> 프로젝트 명이 멀티로 되어있다는것이다.. 하나 지워줘라

Posted by thdeodls85
server2020. 3. 19. 13:44

[Server]sql Data truncation: Truncated incorrect DOUBLE value 해결방법

 

update query 날리는데~

 

정확하지 않는 value란다.. 그러면 where 절에서 비교하는게 정확하게 되고 있는지 확인해보면 된다..

 

key가 틀렸을 가능성이 있다.~

Posted by thdeodls85
server2020. 3. 19. 13:39