上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 114 下一页
摘要: 方式一:使用多个properties文件 定义如下三个用于不同环境的配置文件 1、application-dev.properties 用于开发环境 server.port=8081 2、application-test.properties 用于测试环境 server.port=8082 3、ap 阅读全文
posted @ 2021-10-24 06:06 Sempron2800+ 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 定义application.yml文件: # 定义变量 name: abc #引用变量 myname: ${name} #对象的写法 person: name: zhangsan age: 20 address: - beijing - shanghai #对象的行内写法 person2: {nam 阅读全文
posted @ 2021-10-24 01:34 Sempron2800+ 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 定义父类: 1 public class Father { 2 public Father() { 3 System.out.println("father init"); 4 } 5 6 static { 7 System.out.println("father static init"); 8 阅读全文
posted @ 2021-10-23 10:29 Sempron2800+ 阅读(220) 评论(0) 推荐(0) 编辑
摘要: Java版代码,leetcode地址: 1 class Solution { 2 public int maxProfit(int[] prices) { 3 int min_price = Integer.MAX_VALUE; 4 int maxprofit = 0; 5 int l = pric 阅读全文
posted @ 2021-10-22 20:56 Sempron2800+ 阅读(17) 评论(0) 推荐(0) 编辑
摘要: java版代码,leetcode地址: 1 class Solution { 2 public int maxValue(int[][] grid) { 3 int m = grid.length; 4 int n = grid[0].length; 5 int[][] dp = new int[m 阅读全文
posted @ 2021-10-22 20:42 Sempron2800+ 阅读(13) 评论(0) 推荐(0) 编辑
摘要: C#: 1 public class demo01 2 { 3 public void test01() 4 { 5 //数组的长度是.Length 6 int[] ary = new int[] { 1, 2, 3 }; 7 Console.WriteLine(ary.Length); 8 9 / 阅读全文
posted @ 2021-10-22 08:52 Sempron2800+ 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 语言:Java 框架:Spring Boot 1 package com.example.springboot01.controller; 2 3 import org.springframework.web.bind.annotation.RequestMapping; 4 import org. 阅读全文
posted @ 2021-10-14 16:55 Sempron2800+ 阅读(128) 评论(0) 推荐(0) 编辑
摘要: MYSQL: select de.emp_no,dm.emp_no as manager_no, s1.salary as emp_salary,s2.salary as manager_salary from dept_emp de,dept_manager dm,salaries s1,sala 阅读全文
posted @ 2021-10-13 07:28 Sempron2800+ 阅读(40) 评论(0) 推荐(0) 编辑
摘要: MYSQL: select de.dept_no,e.emp_no,s.salary from employees e join dept_emp de on e.emp_no=de.emp_no join salaries s on e.emp_no=s.emp_no where e.emp_no 阅读全文
posted @ 2021-10-12 22:49 Sempron2800+ 阅读(32) 评论(0) 推荐(0) 编辑
摘要: MYSQL: SELECT s.emp_no,Y.salary,Y.t_rank FROM (SELECT X.salary,CAST((@number := @number+1) AS SIGNED) AS t_rank FROM (SELECT DISTINCT salary FROM sala 阅读全文
posted @ 2021-10-12 20:37 Sempron2800+ 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 114 下一页