목록웹개발 (자바, 스프링, React) (57)
개발 공부
1. 데이터 js에서 사용하기 if($("#message").val() != ""){} 2. 데이터 보내기 $("#submit").click(function(){ var serialNumber = $("#serialNumver").val(); $.ajax({ url: "localhost:8070/v1/api/manufacture-info/serial", type : "POST", contentType : "application/json;charset=UTF-8", dataType : "json", data : "{\\"serialNumber\\" : serialNumber }", success : function(response){ } }); }); 오류) Access to XMLHttpRequest a..
REST API 규칙 : https://sas-study.tistory.com/265 firebase auth 사용자 관리 : https://firebase.google.com/docs/auth/admin/manage-users?hl=ko spring data jpa entity : https://victorydntmd.tistory.com/203 lombok : https://www.daleseo.com/lombok-popular-annotations/ enum : https://woowabros.github.io/tools/2017/07/10/java-enum-uses.html enum converter : https://joont92.github.io/jpa/엔티티-값을-변환해서-저장하기-Conve..
jpa swagger-ui 로그백 +파일생성 firebase sdk server profile enum entity - dto compound ID liquibase 메일발송, 엑셀 WebMvcConfigurer . UserMethodArgumentResolver model mapper, update mapper ControllerAdvice + @ExceptionHandler ResponseBodyAdvice 서버 메이븐 빌드 무중단배포 에디터 jwt uuid multi datasource
public File resizeImage(MultipartFile file, int targetWidth, int targetHeight) throws IOException { //1. MltipartFile 에서 BufferedImage로 변환 BufferedImage originalImage = ImageIO.read(file.getInputStream()); //2. Graphics2D 로 리사이징 BufferedImage resizedImage = new BufferedImage(targetWidth, targetHeight, BufferedImage.TYPE_INT_RGB); Graphics2D graphics2D = resizedImage.createGraphics(); graphics2D...
1. html에서 바로 2. 컨트롤러에서 setting ... import com.foo.test.enums.LanguageCode; @GetMapping public String pageView(@PathVariable long id, Model model) { //컨트롤러에서 model에 Enum 세팅 model.addAttribute("languageCodes", LanguageCode.values()); return "enumTestPage"; } ...
$.ajax({ url: urlCall + '?' + $.param({"Id": Id, "bolDeleteReq" : bolDeleteReq}), type: 'DELETE', success: function(response) {}, error : function(request,status,error){} }); get 방식으로 url에 붙여서 전송
$.ajax({ url: url, type: 'POST', success: function(response) { //Do Something }, error : function(request,status,error){ alert(":"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error); } });

참고) www.one-tab.com/page/8EDLjdh2QymvI5nmTovKlA 문제 발생) - iframe(네이버 스마트 에디터) 사용 시 아래 오류 발생 Refused to display '... url ...' in a frame beacuse it set 'X-Frame-Options' to 'deny'. 원인) - iframe 을 사용하기 위해서는 X-Frame-Options 를 허용으로 바꿔줘야함. ## X-Frame-Options ## deny 어떠한 사이트에서도 frame 상에서 보여질 수 없습니다. sameorigin 동일한 사이트의 frame에서만 보여집니다. 해당 스펙 안에서 브라우저 벤더가 최상위(top level), 혹은 부모(parent), 모든 체인(whole chain)..
DI(Dependency Injection) 프로그램은 객체들의 조립이다. 객체를 연결할 때는 'Composition(일체형) has a'와 'Association(조립형) has a' 방법이 있다. Composition(일체형)의 예 - A->B->... 의 순서로 (생성 후)연결된다. class A{ B b; A(){ this.b = new B(); } } A a = new A(); //A를 생성할 때 B가 생성된다. Association(조립형)의 예 - ...->B->A 의 순서로 연결된다. class A{ B b; A(){ } setB(B){ this.b = B; } } B b = new B(); A a = new A(); a.setB(b); //B가 먼저 생성되고 그 뒤에 A에 조립(injec..