본문 바로가기

프로젝트

(8)
35. 쇼핑몰 :: JPA 설정용 Customer.java, CustomerDTO.java, CustomerController.java, CustomerRepository.java Customer.java 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879package sbr.iowa.demo.customer; import java.io.Serializable;import java.util.Date; import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import javax.persistence.GenerationType;import j..
[스프링부트][헬스장 관리] 메이븐 pom.xml & build.gradle Maven 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 4.0.0 org.springframework.boot spring-boot-starte..
40. 질병관리 :: 관리자 등록 프로세스 HTML -> Java -> csv admin/register.html 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 이름 직급 이메일 전화번호 Colored by Color Scripter cs admin/register.html 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 $('#admin_register').click(e=>{ e.preventDefault() $.ajax({ url : '/admins', type : 'post', data : JSON.stringify({ name : $('#name').val(), posit..
40. 질병관리 :: 관리자 등록 템플릿 register.html 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 Insert title here html, body { width: 100%; height: 100%; overflow: hidden; min-height: 100%; } .border_black { border: 1px solid black; } .center { margin: ..
40. 질병관리 :: 홈 화면 index.html 템플릿 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 Insert title here html, body { width: 100%; height: 100%; overflow: hidden; min-height: 100%; } .border_black { border: 1px solid black; } .center { margin: 0 auto; text-align: center; } .width_full { width: '100%'; height..
40. 질병관리 :: 최초 index.html ※ 템플릿 사용하지 않고 쉽게 시작하기 HomeController.java 의 코드를 아래와 같이 바꿉니다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 package com.occamsrazor.web; import org.springframework.boot.SpringBootConfiguration; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.GetMapping; @SpringBootConfiguration @Controller public class HomeController { @GetMapping("/") public String hello() { return "index.htm..
37. 여행 :: 마이바티스 설정 MyBatisConfig.java 12345678910111213141516171819202122232425262728293031package texas.sbq.travel; import javax.sql.DataSource;import org.apache.ibatis.session.SqlSessionFactory;import org.mybatis.spring.SqlSessionFactoryBean;import org.mybatis.spring.SqlSessionTemplate;import org.mybatis.spring.annotation.MapperScan;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Co..
37. 여행 :: HomeController.java & @Controller 활용한 화면이동 소스코드 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758package texas.sbq.travel; import java.text.DateFormat;import java.util.Date;import java.util.Locale; import org.slf4j.Logger;import org.slf4j.LoggerFactory;import org.springframework.stereotype.Controller;import org.springframework.ui.Model;import org.springframework.web.bind.annotation.Req..