Stella981的头像 ID: 10708576052

Stella981

HelloWorld 社区成员

Stella981

文章16974
个人网站0
加入社区2026

SpringBoot2 集成 WebSocket

1.<dependency<groupIdorg.springframework.boot</groupId<artifactIdspringbootstarterwebsocket</artifactId</dependency2.

SpringBoot2 敏捷开发系统

SpringBoot2敏捷开发系统展开function\_typeof(e){returne&&"undefined"!typeofSymbol&&e.constructorSymbol?"symbol":typeofe;}!function(e){if("object"("und

SpringBoot2 学习10 Controller接收参数的方式

地址传值@PathVariable获取路径参数。即url/{id}这种形式。?传值@RequestParam获取查询参数。即url?name这种形式用注解@RequestParam绑定请求参数到方法入参当请求参数username不存在时会有异常发生,可以通过设置属性requiredfalse解决,例如:@R

SpringBoot2 学习 集成Druid配置

Mavenspring.datasource.druid.webstatfilter.principalsessionnamesession_name测试http://localhost:9081/mixmall/druid/index.html————————————————版权

SpringBoot2 全局异常处理

参考这篇文章里面的几种异常形式:全局异常处理是个比较重要的功能,一般在项目里都会用到。 大概把一次请求分成三个阶段,来分别进行全局的异常处理。 一:在进入Controller之前,譬如请求一个不存在的地址,404错误。 二:在执行@RequestMapping时,进入逻辑处理阶段前。譬如传的参数类型错误。 

SpringBoot2 @validated 自定义效验类型

项目参考:详细参见:《SpringBoot2精髓:从构建小系统到架构分布式大系统》第三章3.5.3节自定义校验项目结构!(https://oscimg.oschina.net/oscnet/7fd061e41843bb7fc22e34c7355a1cbbecb.png)WorkTimepackag

SpringBoot19 之环境变量读取和属性对象的绑定

凡是被Spring管理的类,实现接口EnvironmentAware重写方法setEnvironment可以在工程启动时,获取到系统环境变量和application配置文件中的变量。@ConfigurationpublicclassMyEnvironmentAwareimplementsEnvironmentAware{/