上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: string str = ""; 空串可以实体防止空指针异常,可以使用字符串的函数, 阅读全文
posted @ 2023-09-01 20:12 mljqqh 阅读(18) 评论(0) 推荐(0) 编辑
摘要: java线程的localThread是线程局部变量,只能在线程内访问,方法有 get set remove. 证明localThread只能在线程内访问的方法,在control层设置一个ThreadLocal,然后在service可以访问到ThreadLocal设置的值,另外就是浏览器的一次请求就是 阅读全文
posted @ 2023-09-01 20:08 mljqqh 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 缓存的目的是为了减轻数据库的io, 这里使用的缓存工具是redis, 说简单点就是不操作硬盘 ,现在操作的是内存 阅读全文
posted @ 2023-09-01 20:04 mljqqh 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 空串与null 转载的哈 hellokitty小丸子关注IP属地: 河北 0.2162019.08.19 17:35:15字数 253阅读 1,611 一、空串: 空串""是长度为0的字符串。String变量的值虽然为空串,但空串仍是一个java对象,有自己的长度和内容,分别是0和空,表示这个对象变 阅读全文
posted @ 2023-08-21 15:24 mljqqh 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 你知道http请求头有哪些么?不知道?请看! http请求头有哪些? 今天我们来总结一下http请求头。在这之前,看到请求头信息那么多,看着都很让人发愁啊,所以在这里做了一些总结,什么时候忘记了,可以来这里翻一翻! 首先说一下http请求头怎么组成吧 HTTP请求头提供了关于请求,响应或者其他的发送 阅读全文
posted @ 2023-08-21 01:48 mljqqh 阅读(57) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-08-15 11:01 mljqqh 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 可以参考下 https://blog.csdn.net/AlbenXie/article/details/105709976 使用方法1 @ConfigurationProperties(prefix = "mljqqh.jwt") 初始化 @EnableConfigurationPropertie 阅读全文
posted @ 2023-08-10 00:04 mljqqh 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Use of @OneToMany or @ManyToMany targeting an unmapped class: com.mljqqh.pojo.Customer.contactMans[com.mljqqh.pojo.ContactMan] 阅读全文
posted @ 2021-06-18 11:40 mljqqh 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 实体类加上无参构造 阅读全文
posted @ 2020-12-18 12:31 mljqqh 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 这里提示你没有需要运行的东西了 ,我要关闭了 ,也没有端口 原因是你没有导入web包,没有web包也就不要运行了,也没有端口显示。 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-sta 阅读全文
posted @ 2020-12-17 22:18 mljqqh 阅读(331) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页