config.ini [phone] imei = 123456789 num = 0 / 14 build = 00WWYL test.py CUR_DIR = os.path.dirname(os.path.abspath(__file__)) configFilePath = os.path. ...
分类:
编程语言 时间:
2021-05-24 09:30:30
阅读次数:
0
@Autowired@Qualifier("xiaohon")autowired 依据type装配,如果有多个相同的type的bean需要使用qualifier指定具体的类 <bean class="pojo.People" ><!-- <qualifier value="xiohon"/>--> ...
分类:
编程语言 时间:
2021-05-24 08:57:56
阅读次数:
0
描述:在我们平时的微服务开发中,调用其他服务的接口,通常要把接口调用部分做异常处理(try catch),或者打印异常日志或者结果日志,并且也有可能做一些统一的调用处理,比如微服务接口熔断等处理,这个时候可以适用函数式接口收拢所有的微服务调用集中处理 TestController2 @Request ...
分类:
其他好文 时间:
2021-05-24 08:54:02
阅读次数:
0
例: 根据value值排序 hasd = { 'a': 12, 'c': 7, 'd': 17, 'm': -9 } demo_dict = sorted(hasd.items(),key=lambda x:x[1]) print(demo_dict)[('m', -9), ('c', 7), (' ...
分类:
编程语言 时间:
2021-05-24 08:51:54
阅读次数:
0
1.(1)@Component (2)@Service (3)@Controller (4)@Repository * 上面四个注解功能是一样的,都可以用来创建 bean 实例 2 @Autowired:根据属性类型进行自动装配 @Qualifier(value = "") 根据名称进行注入 使用的 ...
分类:
编程语言 时间:
2021-05-24 08:34:40
阅读次数:
0
merge into ZQ_A A using ZQ_B b on (a.name=b.name) when matched then update set a.age=b.age when not matched then insert (a.name,a.age) values(b.name,b ...
分类:
数据库 时间:
2021-05-24 08:28:00
阅读次数:
0
package com.company.suanfa;/** * 枚举写法和使用测试 * */public enum Color { FIRST("01", "一月"), SECOND("02", "二月"); // 通过key获取value /** * String key="01"; * Sys ...
分类:
编程语言 时间:
2021-05-24 08:15:12
阅读次数:
0
顾名思义: valueOf 返回其原始值 toString 转为字符串 toLocaleString 转为字符串,为地区特定的格式 (几个示例) 1. Number (1234567).valueOf() // 1234567 数字原始值 (1234567).toString() // "12345 ...
分类:
其他好文 时间:
2021-05-24 08:06:48
阅读次数:
0
通过pip成功安装完docker-compose后,执行查看版本命令,发现报错 解决方法 重新安装pyopenssl pip uninstall pyopenssl pip install pyopenssl 参考链接 https://stackoverflow.com/questions/4326 ...
分类:
其他好文 时间:
2021-05-24 08:05:40
阅读次数:
0
可变参数 package com.luo.method; public class Demo4 { public static void main(String[] args) { Demo4 demo4 = new Demo4(); demo4.test(1, 2, 3, 4, 5); } pub ...
分类:
其他好文 时间:
2021-05-24 07:25:57
阅读次数:
0