본문 바로가기
#4-1 / Spring boot - 파일 업로드 2가지 방식1. @RequestParam 형태의 파일 업로드 기능 2. @RequestPart 형태의 파일 업로드 기능 application.properties#file I/O#업로드 기능을 사용함spring.servlet.multipart.enabled=true #파일 하나의 최대 사이즈spring.servlet.multipart.max-file-size=4MB#Multi 형태 - 여러개의 파일 업로드시 전체 합계 크기spring.servlet.multipart.max-request-size=10MB    👀 1. @RequestParam 형태의 파일 업로드 기능  - fileupload.jsp 단일 파일 업로드 :   - controller@PostMapping("/fileuploadok... 2024. 8. 19.
#3-1 / 회원 로그인 (외부 로그인 API 연동) with bootstrap , kakao  bootstrap 4.6.2 css,js압축풀고  webapp에 복붙 끝 https://getbootstrap.com/docs/4.6/getting-started/download/ kakao - 버튼 이미지 다운   https://developers.kakao.com/docs/latest/ko/kakaologin/design-guide    여기서 디자인 리소스 다운 후 프로젝트에 복붙 -> jsp에 이미지 넣음 - 내 어플리케이션 추가  내어플리케이션에서- 왼쪽 nav 의 허용 IP 주소 - cmd ipconfig로 ip / naver에서 검색한 내 ip / 127.0.0.1 복붙 - 왼쪽 nav 의 플랫폼 - web 플랫폼 등록 -   http://local.. 2024. 8. 14.
#2-3 / AOP+springboot+로그기록(aop에서 dao 값 가져오기) table 만듬create table user_log(log_idx int(8) not null auto_increment,log_uid varchar(100) not null,log_time timestamp not null default current_timestamp,primary key(log_idx))=> 이건 log 기록 table   - login.jsp암호화는 생략 아이디 : 패스워드 :    - mapper2.xml  - mybatis xml로 또만들면됨 select uid,uname,upass from user where uid=#{uid} order by uidx desc 비밀번호 확인은 if에 넣는게 정통! => 뚫림 방지 - userRepasitory.java.. 2024. 8. 13.
#2-2 / AOP-springboot 👀 AOP - springboot  @SpringBootApplication - 실행시 AOP에 대한 어노테이션 설정 @EnableAspectJAutoProxy 를  BootwebApplication.java에 추가BootwebApplication.java : springboot project 생성시 자동으로 생성된 파일임 ( @SpringBootApplication 이게 미리 들어있음 )class(AOP를 작동시키는 class를 생성) - module@Pointcut 추상화 메소드를 생성때에 따라 annotation 선택해서 사용- @Before : 해당 메소드가 실행되기 전에 실행되는 메소드 - @AfterReturning : 해당 메소드가 정상적으로 실행되고 난 후 반환되는 값에대해 실행되는 메소.. 2024. 8. 13.