[Nuxt3] BootStrap 부트스트랩 css, js 적용
·
프로그래밍 일기/Front-End
버전 정보 Nuxt 3.6.2 nuxt.config.ts export default defineNuxtConfig({ devtools: { enabled: true }, app: { head: { link: [ { rel: 'stylesheet', href: 'https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css', integrity: 'sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD', crossorigin: 'anonymous' } ], script: [ { src: 'https://cdn.jsdelivr.net/npm/bootstra..
자바 스프링 메일 안에 이미지 추가하는 방법
·
프로그래밍 일기/Java & Spring
버전 정보 스프링 레거시 3.2.9.RELEASE 자바 1.8 javax.mail 1.6.2 maven 프로젝트 MailUtil.java messageHelper.addInline("image", new ClassPathResource("/images/hanati/logo.png")); 아래는 전체 로직 코드입니다. public boolean sendMail(Map msgInfo) throws Exception { String subject = (String) msgInfo.get("p_mail_subject");//제목 String text = (String) msgInfo.get("p_mail_content");//내용 String fromUser = (String) msgInfo.get("p_sen..
[에러해결] javax.mail.MessagingException: Could not connect to SMTP host: smtp.worksmobile.com, port: 465, response: -1 (isSSL true 설정)
·
프로그래밍 일기/Java & Spring
버전 정보 스프링 레거시 3.2.9.RELEASE 자바 1.8 javax.mail 1.6.2 maven 프로젝트 원인 다양한 원인이 있을 수 있다. 1. 잘못된 포트 번호 2. 잘못된 host 3. context-smtpMail.xml 잘못된 설정 4. javax.mail의 버전 호환 문제 저는 4번에 해당하였습니다. 해결방법 context.smtpMail.xml true true true true ${Globals.Mail.Host} 465 위 context파일이 문제가 없는지 확인합니다. javax.mail mail 1.6.2 pom.xml에 위와 같이 입력합니다. 만약 여기서 version 부분에 빨간 에러가 발생할 경우 메이븐 캐시를 날려주거나 https://mvnrepository.com/art..
[Spring Boot] 파일 다운로드 로직 구현 feat.Nuxt3
·
프로그래밍 일기/Java & Spring
파일 업로드 로직 [Spring Boot] 단일, 다중 파일 업로드 로직 구현 feat.Nuxt3 버전 정보 자바 11 Spring Boot 2.7.13 Nuxt 3.6.2 마이바티스 2.3.1 FileUtil.java Controller나 Service에 직접 작성해도 무관하나 따로 Util파일을 만들어 관리하는 것이 좋습니다. CommonController.java package com.example.t taeme.tistory.com 버전 정보 자바 11 Spring Boot 2.7.13 들어가기에 앞서 해당 로직을 무조건 FileUtil을 만들어서 진행할 필요는 없습니다. 필요에 따라 Controller에 FileUtils 로직을 작성하여 구현하셔도 됩니다. 하지만 저는 프로세스 과정을 다른 로직..
[Spring Boot] 단일, 다중 파일 업로드 로직 구현 feat.Nuxt3
·
프로그래밍 일기/Java & Spring
파일 다운로드 로직 [Spring Boot] 파일 다운로드 로직 구현 feat.Nuxt3 파일 업로드 로직 [Spring Boot] 단일, 다중 파일 업로드 로직 구현 feat.Nuxt3 버전 정보 자바 11 Spring Boot 2.7.13 Nuxt 3.6.2 마이바티스 2.3.1 FileUtil.java Controller나 Service에 직접 작성해도 무관하나 따로 Util taeme.tistory.com 버전 정보 자바 11 Spring Boot 2.7.13 Nuxt 3.6.2 마이바티스 2.3.1 FileUtil.java Controller나 Service에 직접 작성해도 무관하나 따로 Util파일을 만들어 관리하는 것이 좋습니다. package com.example.testapi.config..
Nuxt3 vue3 formData 다중 파일 업로드, 파라미터 전달
·
프로그래밍 일기/Front-End
test.vue const addFile = async () => { const formData = new FormData(); for (var i = 0; i < multipleFile.value.length; i++) { formData.append('fileArray', multipleFile.value[i]); // 파일 객체 } await useFetch('http://localhost:8080/file/add', { method: 'POST', body: formData, }); } formData.append를 같은 이름으로 넘겨 주어야 합니다. 단일 파일의 경우 for문만 제거하면 됩니다. const multipleFile = ref([]); const multipleFileChange =..