springboot + jsp
来源:互联网 发布:美国历史书籍推荐 知乎 编辑:程序博客网 时间:2024/04/29 04:10
# IDENTITY (ContextIdApplicationContextInitializer)spring.application.index=SpringBootWelcome.v1.1spring.application.name=SpringBootWelcome#Serverserver.port=80server.jsp-servlet.class-name=org.apache.jasper.servlet.JspServletsecurity.basic.enabled=falsemanagement.security.enabled=false#MVCspring.mvc.view.prefix=/WEB-INF/views/security.basic.enabled=falsemanagement.security.enabled=false#LOGlogging.config=classpath:log4j2.xml
package com.lance.welcome.config;import org.springframework.context.annotation.Configuration;import org.springframework.core.Ordered;import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;@Configurationpublic class WebMvcConfigure extends WebMvcConfigurerAdapter{@Overridepublic void addViewControllers(ViewControllerRegistry registry) {registry.addViewController("/").setViewName("forward:/index.jsp");registry.setOrder(Ordered.HIGHEST_PRECEDENCE);super.addViewControllers(registry);}}
package com.lance.welcome;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class SimpleApplication {public static void main(String[] args) {SpringApplication.run(SimpleApplication.class, args);}}
阅读全文
0 0
- springboot + jsp
- springboot 项目运行jsp
- springboot整合jsp
- SpringBoot 中使用JSP
- springboot jsp mybatis 实例
- springboot返回jsp页面
- SpringBoot 整合 JSP
- SpringBoot JSP 支持
- springBoot+jsp配置
- 【快搭】springboot+jsp
- springboot访问jsp页面
- SpringBoot添加JSP
- springboot访问jsp页面
- springboot jar jsp
- springBoot整合jsp
- springboot支持jsp页面
- SpringBoot集成jsp
- 【SpringBoot教程六】:SpringBoot+JSP 开发
- Python第一课学习笔记
- redis-AOF
- Android 判断 Intent 是否存在
- 对JAVA集合进行遍历删除时务必要用迭代器
- Java实现中文分词,IKAnalyzer
- springboot + jsp
- 状态模式(State Pattern)——事物的状态
- ASUS EZ Installer格式化U盘失败
- Python 实现 NWU 校园网登陆
- 第1章 初始Express
- Oracle之分区监控语句
- 【安全牛学习笔记】MsSQL高级注入
- 欢迎使用CSDN-markdown编辑器
- ReentrantLock与公平锁、非公平锁实现