전체 글(809)
-
Model을 기반으로 DML문 생성
python manage.py makemigrations 앱이름
2021.01.14 -
Django 앱 생성 및 등록
python manage.py startapp 앱이름 python manage.py startapp poll [setting.py] INSTALLED_APPS = [ 'polls.apps.PollsConfig', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', ] https://docs.djangoproject.com/ko/3.1/intro/ 시작하기 | Django 문서 | Django Django The web framework for perfectionists ..
2021.01.14 -
String boot JSP 셋팅
WEB-INF가 중요함 WEB-INF를 디렉토리에 넣으면, jsp를 그냥 인식할 수 없음(레거시 이전시 문제) 아래 디렉토리 생성 프로젝트/src/main/webapp/WEB-INF/jsp [pox.xml] org.apache.tomcat.embed tomcat-embed-jasper javax.servlet jstl [application.properties] server.port=8081 spring.mvc.view.prefix: /WEB-INF/jsp/ spring.mvc.view.suffix: .jsp JSP 파일 생성 프로젝트/src/main/webapp/WEB-INF/jsp/test.jsp 프로젝트/src/main/webapp/WEB-INF/jsp/abcd/test.jsp http://loca..
2021.01.14 -
The requested profile "pom.xml" could not be activated because it does not exist.
Run as > Maven install 수행시 경고 발생 Project Explorer View>해당 프로젝트>Maven Dependencies>Properties로 이동 Properties for Maven Dependencies 창에서 Maven Project settings 클릭 Active Maven Profiles(comma separated)에서 'pom.xml' 삭제
2021.01.13 -
Spring boot war 생성
pom.xml에 아래 내용 추가 war temp Run as > Maven install 실행 워크스페이스/프로젝트명/target/temp.war로 파일 생성됨
2021.01.13 -
Spring boot 한글처리
Centos7에서 특별한 조치 없이 한글 잘 나옴 단, html은 아래 메타 태그를 넣어야 한글이 안 깨짐 테스트 한글
2021.01.11