
springboot
文章平均质量分 79
lastembryoXX
这个作者很懒,什么都没留下…
展开
-
spring security安装以及查看或修改默认登录的账号密码
spring security一、安装spring security二、简单配置spring security(修改默认表单的值)1)、spring Boot Auto Configuration2)、Spring Security Configuration(编程方式)3)、Spring Security Configuration(xml方式)一、安装spring securityspri...原创 2019-11-01 01:17:12 · 6074 阅读 · 0 评论 -
Unable to start ServletWebServerApplicationContext due to missing ServletWebServerFactory bean.
org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.context.ApplicationContextException: Unable to start ServletWebServerApplic...原创 2019-03-07 09:03:24 · 800 阅读 · 0 评论 -
jar中没有主清单属性
使用Spring Boot框架搭建项目,在Idea下能正常运行,但是用maven或者是idea在打成jar包后直接使用java -jar命令的时候,报错"jar中没有主清单属性",我也用了,网上的许多解决方案,如在pom中添加一个SpringBoot的构建的插件,在MANIFEST.MF文件里面多添加了一行:Main-Class: xxxxx等都没有解决,后来在一篇博客看到:这才解决了...转载 2019-03-07 09:17:12 · 1935 阅读 · 0 评论 -
springboot,后端如何获取fetch传来的数据
一、我前端比较常用的是直接用formdata打包表单值向后端传值request.getParameter(key)中key是表单中的name属性的值也可以这样取值二、也可以直接用fetch的url传值后台接收值也和普通的url请求一样三、如果含有文件的话后台这样注意,如果直接用fetch想要获取session的值的话,请在前端js的fetch中加入 crede...原创 2019-03-07 09:44:29 · 2155 阅读 · 3 评论 -
thymeleaf 动态更换内容( Error resolving template xxx, template might not exist or might not be ......)
thymeleaf 动态更换内容(Error resolving template xxx, template might not exist or might not be ......错误解决的方法序言错误解决的方法 th:replace="__${page_area}__"加双下划线,是预处理表达式序言今天我用thymeleaf的时候需要实现一个功能,就是用th:fragmen...原创 2019-09-24 23:41:42 · 1112 阅读 · 1 评论