FrameWork

구조  MySQL 연동  MySQL 과 스프링프레임워크를 연동해줘야 함메이븐에서 설치할 것https://mvnrepository.com/artifact/mysql/mysql-connector-java/8.0.33 mysql mysql-connector-java 8.0.33 https://mvnrepository.com/artifact/org.springframework/spring-jdbc/5.2.25.RELEASE    bean 만들기  C:\Users\hi\.m2\repository\com\mysql\mysql-connector-j\8.0.33 프로젝트에 있다보니까 재실행할 때마다 실행 중지 실행 중지 계속 이러다 보니 문제가 생겨서톰캣쪽에 두는 것이 깔끔 ..
1. 파일 구조정적 자원에 대한 정보를 보려면 servlet-context.xml 를 보면 되는데파일을 보면 ! 절대 경로가 있음 확인 후 경로 설정해주면 됨 페이지 소스 보고 클릭해보고 경로가 맞는지 확인해보면 됨  만약 다른 폴더에서 하고 싶다면webapp 폴더에 새로운 폴더를 만들어주면 된다근데 보통 asset 이라 많이 씀설정이라서 추가해주면 됨 그럼 파일인 경우는 ?리소스 폴더에 index.html 넣으면url 경로가 http://localhost:9500/ver1/resources/index.html webapp 에 jsp 파일을 넣는다면 컨텍스트 다음에 jsp 파일을 입력해주면 됨  WEB-INF 는 외부 접근 불가능한데, jsp 같은 경우 접근이 가능하다 그럼 html 은 ? 안됨스프링프레..
https://spring.io/ Spring | HomeCloud Your code, any cloud—we’ve got you covered. Connect and scale your services, whatever your platform.spring.io  시간이 조금 오래 걸리는데 압축으로 풀지 않고, 반디집으로 풀기 !그래서 원하는 경로로 데리고 옴 스프링프레임워크는 자바 11 버전 써여된다 !! 그러면 환경 변수 변경 !!  실행 파일작업할 폴더 만들어주고 워크스페이스 지정 그 다음 해당 경로로 가서메타랑 서버가 생김   xml 넣어주기   그럼 이제 exe 파일 열어서   그럼 프로젝트 생성 완료하지만 에러가 뜨는데 ....  에러가 뜨는데 설정해줘야함  클릭하면펼쳐라  조금 다름 다시 ..
1. build.gradledependencies { implementation 'org.springframework.boot:spring-boot-starter-thymeleaf' // thymeleaf implementation 'org.springframework.boot:spring-boot-starter-web' // Web implementation 'org.springframework.boot:spring-boot-starter-data-jpa' // JPA implementation 'org.springframework.boot:spring-boot-starter-jdbc' // jdbc runtimeOnly 'com.h2database:h2' ..
https://www.h2database.com/html/main.html H2 Database EngineH2 Database Engine Welcome to H2, the Java SQL database. The main features of H2 are: Very fast, open source, JDBC API Embedded and server modes; in-memory databases Browser based Console application Small footprint: around 2.5 MB jar file size     Suppwww.h2database.com H2https://www.h2database.com/html/main.htmlJDBC URLjdbc:h2:tcp://l..
MVC - model view controller https://docs.spring.io/spring-boot/reference/web/servlet.html Servlet Web Applications :: Spring BootFor servlet application, Spring Boot includes support for embedded Tomcat, Jetty, and Undertow servers. Most developers use the appropriate “Starter” to obtain a fully configured instance. By default, the embedded server listens for HTTP requests on podocs.spring.io Sp..
1. 정적인 페이지 templates/static 에 html 추가하기 templates/static 경로에 index.html 을 넣었을 때 결론적으로 로딩되는건 static 경로에 있는 index.html 공식 문서를 보면 static 경로에서 index.html 를 찾고, 없으면 템플릿 경로에 가서 찾는다 !index 파일을 톰캣을 찾느다 ! 찾을 때 정적인 파일부터 찾고, 업으면 동적인 파일 ! 없으면 페이지가 없다고 문구를 띄운다 !https://docs.spring.io/spring-boot/reference/web/servlet.html Servlet Web Applications :: Spring BootFor servlet application, Spring Boot includes su..
print(blue)