본문 바로가기

날리지

[Spring] static 변수에 injection하지 못 할 때 @Resource annotation is not supported on static fields 问题解决 写set方法,在set方法上做注解 @Component public final class OAuthUtil { private static OAuthService oauthService; @Resource(name = "woldoauthService") public void setOauthService(OAuthService oauthService) { OAuthUtil.oauthService = oauthService; } } 더보기
CENTOS7 방화벽 CentOS 7 부터는 iptables 관련 명령어가 아니라 firewall으로 써야한다고 한다. 포트는 아래와 같이 열면 된다.firewall-cmd --zone=public --permanent --add-port=2888/tcp firewall-cmd --reload 열린 포트는 아래 명령어로 확인 할 수 있다.firewall-cmd --zone=public --list-all 출처: https://kwangsics.tistory.com/entry/CentOS-CentOS-7-포트-열기-및-확인 [린기린기린의 개인 기록 공간]CentOS 7 부터는 iptables 관련 명령어가 아니라 firewall으로 써야한다고 한다. 포트는 아래와 같이 열면 된다.firewall-cmd --zone=public.. 더보기
[eclipse] remove project from eclipse .metadata/.plugins/org.eclipse.core.resources/.projects 더보기
[Error]Ajax에서 컨트롤러에서 넘어온 한글이 깨질 때, 1. 오랫동안 개발을 안 했더니, 이전에는 쉽게 해결되던 문제들이 이제는 삽질한다. 2. 본론으로 돌아가서 , Ajax 단에서 데이터를 받으면 한글이 깨지는 경우 2.1 ajax 에 contentType: 'application/x-www-form-urlencoded; charset=utf-8', 추가 2.2 was 에 URIEncoding="UTF-8" 추가 .. ( 근데 이건 크게 관계 없는 거 같다. ) 2.3 그래도 안되면 컨트롤러에서 requestMapping 해줄 때에 produces="text/plain;charset=UTF-8" 얘를 추가해준다. 결과 잘 된다. 낭비 시간: 30분 더보기
[maven] 커스텀 라이브러리들을 메이븐에 추가하기 https://yujuwon.tistory.com/entry/maven%EC%97%90-custom-jar%EB%A5%BC-%EC%A7%91%EC%96%B4%EB%84%A3%EC%96%B4-%EB%B3%B4%EC%9E%90 더보기
[Chatbot] how to build chatbot with NLP? A ‘chatbot’ as the name suggests is a machine that chats with you. The trick though is to make it as human-like as possible. From ‘American Express customer support’ to Google Pixel’s call screening software chatbots can be found in various flavours. Photo by Blake Wisz on Unsplash How does it actually work? The earlier versions of chatbots used a machine learning technique called pattern matchi.. 더보기