上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 97 下一页
摘要: 前提:配置数据库连接(见前面) 一、步骤 1、导包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-jdbc</artifactId> </dependency> 2、操 阅读全文
posted @ 2020-07-24 23:18 市丸银 阅读(170) 评论(0) 推荐(0)
摘要: 一、mysql8 以上 步骤 1、导包 <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> <version>8.0.11</version> </dependency> 注意:根据数 阅读全文
posted @ 2020-07-24 22:45 市丸银 阅读(494) 评论(0) 推荐(0)
摘要: https://www.layui.com/ 阅读全文
posted @ 2020-07-24 20:47 市丸银 阅读(367) 评论(0) 推荐(0)
摘要: i18n 在resiurce下创建i18n文件夹 修改yaml文件 spring: messages: basename: i18n.login 4、修改模板 thymeleaft语法 #{login.tip} 国际化 添加语言配置 阅读全文
posted @ 2020-07-24 07:23 市丸银 阅读(149) 评论(0) 推荐(0)
摘要: 语法 // 记录器 Logger logger = LoggerFactory.getLogger(getClass()); @Test void contextLoads() { // springboot 默认开启的级别是 info logger.trace("trace"); logger.d 阅读全文
posted @ 2020-07-23 22:45 市丸银 阅读(109) 评论(0) 推荐(0)
摘要: 一、前提条件 1、导入thymeleaf <dependency> <groupId>org.thymeleaf</groupId> <artifactId>thymeleaf-spring5</artifactId> </dependency> 2、html templates文件夹中创建html 阅读全文
posted @ 2020-07-23 22:07 市丸银 阅读(398) 评论(0) 推荐(0)
摘要: https://www.jb51.net/article/152632.htm 阅读全文
posted @ 2020-07-23 15:43 市丸银 阅读(101) 评论(0) 推荐(0)
摘要: import requests _url = "http://127.0.0.1:8000/test2/" files = { "image": ("e.jpg", open(r"C:\Users\wuhao\Desktop\e.jpg", 'rb'), "image/jpeg"), } data 阅读全文
posted @ 2020-07-23 13:54 市丸银 阅读(257) 评论(0) 推荐(0)
摘要: @Test void contextLoads() { String s1 = "你好{0}, 我叫{1}"; System.out.println(MessageFormat.format(s1, "张飞", "王菲")); String s2 = "你好%s, 我叫%s"; System.out 阅读全文
posted @ 2020-07-22 22:27 市丸银 阅读(155) 评论(0) 推荐(0)
摘要: 本以为此功能已经舍弃,万万没想到需要导入包 参考下面的博客(日后有空验证) https://www.cnblogs.com/huanchupkblog/p/12915268.html 阅读全文
posted @ 2020-07-22 22:06 市丸银 阅读(160) 评论(0) 推荐(0)
上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 97 下一页