logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

Node.js中间件和spring boot配合使用

Node.js提供了强大的中间件处理功能,可以在请求到达服务器之前做预先检测和相应处理,对于spring boot是一大补足,今天在项目中试图将两者结合起来配合使用,以下记录我的学习过程。如下是我的文件目录结构:先按照已有方法配置package.json文件,其中必须有:"http-proxy-middleware": "latest"以引入http-proxy-m

#node.js#spring#服务器 +1
spring boot中controller注意事项

spring boot的controller水深无比,经过学习,我总结一些tips,以便以后参照,减少错误:1.controller主要有两个标签:@Controller和@RestController,两个标签无法同时发挥作用,前者标注的类只能返回静态文件,后者标注的类用于返回数据类型如json字符串2.使用@Controller标签时,templates下的文件并不能被识别(自己试验过

#spring
Flutter基础:Flutter的Flex布局理论以及和web的区别

Flutter的布局其实比web更简单直接,万物皆可Column与Row,这两个Flex类型组件将屏幕方方正正划分,其中Column组件让人又爱又恨,首先它让垂直方向的高度不再像web中那么难以控制,如果你在根组件中直接使用Column做最外层容器,它的默认高度就是屏幕高度,子组件又有Expanded能划分剩余空间,是不是很舒服?web中想对高度精确控制还要html,body都来个height:1

Flutter典型错误:There are multiple heroes that share the same tag within a subtree.

这段错误信息描述通常如下:‘Within each subtree for which heroes are to be animated (i.e. a PageRoute subtree), each Hero must have a unique non-null tag. In this case, multiple heroes had the following tag: <de

Flutter使用可滚动组件(SingleChildScrollView,ListView,GridView)时的典型错误

话不多说,直接丢报错信息,看看自己是否遇到:The following assertion was thrown during performLayout():RenderFlex children have non-zero flex but incoming height constraints are unbounded.When a column is in a parent th...

Flutter使用可滚动组件(SingleChildScrollView,ListView,GridView)时的典型错误二

当一个可滚动组件中嵌套另一个可滚动组件时,会抛出如下错误信息:The following assertion was thrown during performResize():Vertical viewport was given unbounded height.Viewports expand in the scrolling direction to fill their cont...

Vue项目路径别名设置

用vue-cli搭建好vue项目之后,进入正式开发过程,有时候会发现各种import路径中都存在长串的重复路径,比如:import 'src/assets/styles/reset.css'import 'src/assets/styles/border.css'为了方便维护,可以打开build文件下的webpack.base.conf.js文件,在module.exports中找到resolv.

#webpack
html <div>标签内背景图片自适应div大小

只需通过css设置background-size属性为contain,即background-size:contain注意:一定要在先设置background之后再设置background-size属性,这样才有效

#html5#html
到底了