목록http (8)
최코딩의 개발노트
개요: 필자가 공부하면서 정리한 게시물이다. 서블릿 구조 @ServletComponentScan //서블릿을 자동등록 @SpringBootApplication public class ServletApplication { public static void main(String[] args) { SpringApplication.run(ServletApplication.class, args); { } } } @WebServlet(name="helloServlet",urlPatterns="/hello") public class HelloServlet extends HttpServlet{ @Override protected void service(HttpServletRequest request, HttpServl..
보호되어 있는 글입니다.
개요: 필자가 공부하면서 정리한 게시물이다. document라는 object를 통해 html 코드를 불러올 수 있다. title은 현재 승호인데 gg 하면 일시적으로 title 변경이 가능하다. 이외에도 document.body , document.head 등 을 통해 불러올 수 있다. 승호얌 id를 title 지정한 부분을 getElementById를 통해 위와 같이 불러올 수 있다. const title = document.getElementById("title"); console.log(title); js에서도 이렇게 불러올 수 있다.! console.dir(title); h1 태그에서 가져올 수 있는것들이다. 즉 dir은 요소 내부를 불러오는것이다. title.innerText="d"; 이때 js..
보호되어 있는 글입니다.
보호되어 있는 글입니다.
보호되어 있는 글입니다.