在autoconfigure模块的spring.factories中,有自动配置类DispatcherServletAutoConfiguration: 进入这个配置类,可以知道这个自动配置只有是Web Application并且发现有DispatcherServlet类的时候才会生效。 那么是什么 ...
分类:
编程语言 时间:
2021-04-06 15:12:48
阅读次数:
0
使用 jsonify 时,返回的 http response 的 Content-Type 是:Content-Type: application/json 使用json.dumps时,Content-Type则是:Content-Type: text/html; charset=utf-8 其他基 ...
分类:
Web程序 时间:
2021-04-06 14:40:10
阅读次数:
0
11.3 使用Spring实现AOP 方式三:使用注解实现! <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www ...
分类:
编程语言 时间:
2021-04-06 14:07:51
阅读次数:
0
chrome 密码不同步 ubuntu 删掉 ~/.config/google-chrome/Default/‘Login Data' mac mac 下该文件的路径是 /Library/Application Support/Google/Chrome/Profile 1/Login Data w ...
分类:
其他好文 时间:
2021-04-02 13:35:07
阅读次数:
0
Public Sub SavetheattachmentNew(Item As Outlook.MailItem) Dim olApp As New Outlook.Application Dim nmsName As Outlook.NameSpace Dim vItem As Object Se ...
分类:
其他好文 时间:
2021-04-02 13:02:04
阅读次数:
0
1.Required(默认属性): 如果存在一个事务,则支持当前事务。如果没有事务,则开启一个新的事务。 2.Supports支持当前事务,如果当前没有事务,就以非事务的方式执行 3.Mandatory使用当前的事务,如果没有事务,就抛出异常 4.Requires_New新建事务,如果当前存在事务, ...
分类:
编程语言 时间:
2021-04-01 13:32:08
阅读次数:
0
首先感谢这位大哥帖子:https://www.hangge.com/blog/cache/detail_2461.html 解决如下: 在application.properties加: spring.web.resources.static-locations=classpath:/META-IN ...
分类:
编程语言 时间:
2021-04-01 13:16:56
阅读次数:
0
启动项目突然报错,异常信息为一下情况: 解决方法: 修改当前项目下: .idea\workspace.xml 找到<component name="PropertiesComponent">,在里面添加<property name="dynamic.classpath" value="true" / ...
分类:
移动开发 时间:
2021-03-31 11:50:39
阅读次数:
0
本篇文章SpringBoot使用Hibernate-validate以及一些常用的校验 官方Api 访问地址: http://hibernate.org/validator/ Released under the ASL v2 Application layer agnostic validatio ...
分类:
编程语言 时间:
2021-03-30 13:31:40
阅读次数:
0
1、概述 1.1 介绍 在分布式架构、微服务以及k8s生态相关技术环境下,对应用的请求链路进行追踪(也叫做APM,Application Performance Management)是非常有必要的,链路追踪简单来说就是将应用从流量到达前端开始,一直到最后端的数据库核心,中间经过的每一层请求链路的完 ...
分类:
其他好文 时间:
2021-03-29 12:27:43
阅读次数:
0