zoukankan      html  css  js  c++  java
  • IntelliJ IDEA 2017版 spring-boot2.0.4的集成JSP

    一、必须依赖四个包,其中三个是springboot自带包,可以不写版本号,有一个不在springboot中,需要设置版本号

     1  <!--引入Spring Boot内嵌的Tomcat对Jsp的解析包-->
     2         <dependency>
     3             <groupId>org.apache.tomcat.embed</groupId>
     4             <artifactId>tomcat-embed-jasper</artifactId>
     5         </dependency>
     6 
     7         <!--servlet依赖的jar包start-->
     8         <dependency>
     9             <groupId>javax.servlet</groupId>
    10             <artifactId>javax.servlet-api</artifactId>
    11         </dependency>
    12 
    13         <!--jsp依赖jar包start-->
    14         <dependency>
    15             <groupId>javax.servlet.jsp</groupId>
    16             <artifactId>javax.servlet.jsp-api</artifactId>
    17             <version>2.3.1</version>
    18         </dependency>
    19 
    20         <!--jstl标签依赖的jar包start-->
    21         <dependency>
    22             <groupId>javax.servlet</groupId>
    23             <artifactId>jstl</artifactId>
    24         </dependency>
    View Code

    二、通过Controller访问

    三、查看源码

    https://github.com/liushaoye/sprinboot-yml/tree/master

  • 相关阅读:
    局域网中CSMA/CD协议的应用
    RIP及距离向量算法
    网桥与以太网交换机
    C++ String
    C++ Input & Output
    Shell Script(1)----variable compare
    python--内建函数(1)
    python--data type
    python--compile
    python--help
  • 原文地址:https://www.cnblogs.com/liuyangfirst/p/9276230.html
Copyright © 2011-2022 走看看