@Aspect注解将表示它是一个切面@Component表示它是一个Spring的组件 切片Aspect,既然Spring那么支持AOP,就肯定都能拿。有人会问如何拿原始的HTTP请求和响应的信息,通过以下代码应该拿得到啊哈哈哈哈ServletRequestAttributes attributes ...
分类:
Web程序 时间:
2020-11-25 12:05:49
阅读次数:
12
前置知识 在正式进入编写环节之前,建议先花一点时间了解下javaagent(这是JDK 5引入的一个玩意儿,最好了解下其工作原理);另外,Skywalking用到了byte-buddy(一个动态操作二进制码的库),所以最好也熟悉下。 当然不了解关系也不大,一般不影响你玩转Skywalking。 ja ...
分类:
其他好文 时间:
2020-11-24 13:03:26
阅读次数:
18
在阅读后台前端源码前还是要把后台启动起来的。 虽然作者是把后台分为四个模块的 但实际上只有一个服务器实例。只是根据业务逻辑做了module的划分。 具体的启动步骤作者有详细的描述:https://gitee.com/linlinjava/litemall/blob/master/README.md ...
分类:
其他好文 时间:
2020-11-23 12:32:52
阅读次数:
6
问题一: [root@cdeba90ec46e ~]# ./configure --prefix=/usr/local/nginx --user=www --group=www --with-http_stub_status_module bash: ./configure: No such fil ...
分类:
其他好文 时间:
2020-11-23 12:11:38
阅读次数:
5
ERROR Failed to compile with 4 errors These relative modules were not found: * ../../../public/ueditor/lang/zh-cn/zh-cn.js in ./node_modules/babel-loa ...
分类:
Web程序 时间:
2020-11-23 12:09:09
阅读次数:
11
1.从控制台输入: 另外还有很多中方法供选择 2.从文件中输入 2.1绝对路径 2.2相对路径:一定要注意i相对路径是相对于整个项目project的路径而不是module 注意最后一定要把Source关闭 2.文件的输出 3.网络的交互 1 package com.me.scala 2 3 impo ...
分类:
其他好文 时间:
2020-11-21 12:14:30
阅读次数:
7
在看阮一峰的react入门的时候,写到一段代码,但是写完就报错了,经过多方查找,终于解决掉了 错误描述: 解决方法: 将React.createClass换成React.Component, 但是不知道为什么这样就不报错了 (^._.^)? 文章地址:https://toddmotto.com/re ...
分类:
Web程序 时间:
2020-11-21 12:12:27
阅读次数:
15
Ansible报错:module_stdout": "/bin/sh: 1: /usr/bin/python: not found 1. 检查ansible服务器的Python: # ls /usr/bin/python 没有则安装。 2. 检查节点服务器的Python: 没有python,路径下也 ...
分类:
编程语言 时间:
2020-11-21 12:10:11
阅读次数:
6
1.import module_name 2.from module_name import class_name 3.from module_name import * 当我们知道需要导入模块那个类时,会用到2,比如我们要从from matplotlib import pyplot,但我们不知道需 ...
分类:
其他好文 时间:
2020-11-21 12:10:00
阅读次数:
5
01. 变量交换 Bad tmp = a a = b b = tmp Pythonic a,b = b,a 02. 列表推导 Bad my_list = [] for i in range(10): my_list.append(i*2) Pythonic my_list = [i*2 for i ...
分类:
编程语言 时间:
2020-11-20 11:29:30
阅读次数:
6