上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页

2022年11月6日

springboot04-配置profiles

摘要: 配置profiles文件(总体思路) 一、profile配置方式 1-多profile文件方式(需要写很多profiles文件) applicat.properties内容: spring.profiles.active=dev/test/pro #在dev/test/pro 选一个写,就可以引用其 阅读全文

posted @ 2022-11-06 15:35 陈嘻嘻- 阅读(207) 评论(0) 推荐(0)

2022年11月5日

SpringBoot03(读取配置内容)

摘要: SpringBoot读取propriety/yml/yaml配置中的内容 3种方法 方法1 @value @RestController public class HelloController { /*@Value("${XXXX}") 这个是@Value的固定格式,XXXX是配置在proprie 阅读全文

posted @ 2022-11-05 23:24 陈嘻嘻- 阅读(66) 评论(0) 推荐(0)

SpringBoot报错解决

摘要: ####1-问题:2022-11-05 16:25:09.334 ERROR 18989 [ main] o.s.b.d.LoggingFailureAnalys 解决:在java的入口把@SpringBootApplication改成@SpringBootApplication(exclude={ 阅读全文

posted @ 2022-11-05 16:31 陈嘻嘻- 阅读(586) 评论(0) 推荐(0)

SpringBoot02-对yaml的介绍(配置环境)

摘要: 一、SpringBoot配置文件的分类和优先级 配置的介绍:yaml 二、介绍yaml格式 1-他和其他传统格式的不同 2-yaml的基本语法 3-yaml数据格式 代码块解析: server: port: 8085 #1-对象的写法 person: name: chen age: 18 #2-对象 阅读全文

posted @ 2022-11-05 16:10 陈嘻嘻- 阅读(47) 评论(0) 推荐(0)

2022年7月26日

++ --

摘要: java基础语法:++ -- public class AdditionAndSubtraction { //java基础语法 ++ -- / 前++ 后++ 前-- 后-- public static void main(String[] args) { int a = 10; int b = 2 阅读全文

posted @ 2022-07-26 18:59 陈嘻嘻- 阅读(787) 评论(0) 推荐(0)

杨辉三角

摘要: //编写一个main方法 public static void main(String[] args) { Scanner myScanner = new Scanner(System.in); System.out.print("输入杨辉三角的层数:"); int nums = myScanner 阅读全文

posted @ 2022-07-26 18:23 陈嘻嘻- 阅读(50) 评论(0) 推荐(0)

2022年7月22日

只出现一次的数字

摘要: 介绍:给出一个数组,找到这个数组中只出现了一次的"数字" *这个效率有点差,因为运用了好多循环(不推荐) 执行用时:1367 ms 内存消耗:42.5 MB public class SingleNumber { public static void main(String[] args) { in 阅读全文

posted @ 2022-07-22 17:53 陈嘻嘻- 阅读(44) 评论(0) 推荐(0)

合并两个有序数组

摘要: 介绍:给出对应‘数组’和对应的‘m,n’ 来选择要合并的区间 /* 注意: 我这个和leetCode有点不一样,leetCode要求在nums1这个集合中 只要把最后的集合到数组的便利,改成 nums1[i] = list.get(i);就可以,但是我是新建一个数组。 */ public class 阅读全文

posted @ 2022-07-22 15:28 陈嘻嘻- 阅读(62) 评论(0) 推荐(0)

2022年7月21日

搜索插入位置

摘要: 介绍:搜索插入位置,如果有就返回索引,如果没有就返回他应该插入那个索引位置 package cut; public class SearchInsert { public static void main(String[] args) { int[] ints = {1, 3, 5, 6}; Sol 阅读全文

posted @ 2022-07-21 16:22 陈嘻嘻- 阅读(77) 评论(0) 推荐(0)

移除元素

摘要: 介绍:移除数组中指定元素,返回集合剩下元素的个数 public class Bracket { public static void main(String[] args) { int[] ints = {3, 2, 2, 3}; Solution3 solution3 = new Solution 阅读全文

posted @ 2022-07-21 15:07 陈嘻嘻- 阅读(26) 评论(0) 推荐(0)

上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 14 下一页

导航