ksmart_Framework/spring(10)
-
팀프로젝트 스프링부트
server.port=80 spring.thymleaf.cache=false spring.datasource.driver-class-name=net.sf.log4jdbc.sql.jdbcapi.DriverSpy spring.datasource.url=jdbc:log4jdbc:mysql://localhost:3306/ksmart42db?serverTimezone=UTC&characterEncoding=UTF8 spring.datasource.username=root spring.datasource.password=java0000 #JSESSION 비활성화 server.servlet.session.tracking-modes=cookie server.servlet.session.cookie.http-only=t..
2022.03.14 -
회원가입_sts
main.html 복사 -> member\addMember.html 으로 붙여넣기 더보기 회원아이디 회원비밀번호 회원이름 회원권한 관리자 판매자 구매자 회원 회원이메일 회원주소 회원가입 /member/addMember 주소요청 화면출력용 메서드 post 받았을 때 반응하는 메서드 /** * 회원가입폼 */ @GetMapping("/addMember") public String addMember(Model model) { model.addAttribute("title","회원가입"); return "member/addMember"; } /** * /addMember method 방식이 다르기 때문에 주소를 중복해서 사용 가능 * @param member (회원가입 폼 전송 시 요소의 name과 dto의 멤..
2022.02.22 -
log4j_sts
1. 라이브러리 추가 org.bgee.log4jdbc-log4j2 log4jdbc-log4j2-jdbc4.1 1.16 2. log4 propertyfile 삽입 3. 언어설정 4.Log4j 변수 및 로그패턴설정
2022.02.22 -
mybatis_sts
데이터소스에 대한 설정을 하지 않아서 dbcp 를 설정 할 수 없다. application.properties에서 DB연결한다. # db 연결 정보 spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.url=jdbc:mysql://localhost:3306/ksmart42db?serverTimezone=UTC&characterEncoding=UTF-8 spring.datasource.username=ksmart42id spring.datasource.password=ksmart42pw mybatis pom.xml에 thymeleaf library 추가해준다. nz.net.ultraq.thymeleaf thymelea..
2022.02.22 -
springboot 백업_sts
Import 불러올 파일 선택 Export 저장 할 위치 선택
2022.02.20 -
@Service @Autowired 어노테이션, ModelAndView_sts
@Service 해당 클래스를 루트 컨테이너에 Bean 객체로 생성해주는 어노테이션 패키지 ksmart.hellospringboot.service 클래스 KsmartService package ksmart.hellospringboot.service; import org.springframework.stereotype.Service; import org.springframework.web.bind.annotation.GetMapping; @Service public class KsmartService { @GetMapping("/ksmartView") public String ksmart(String level) { String result=""; if(level !=null && level.equals(..
2022.02.20