会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
L1998
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
···
10
下一页
2021年8月25日
6.RESTFul
摘要: 1.RESTFul简介 2.RSTFul的实现
阅读全文
posted @ 2021-08-25 23:07 L1998
阅读(25)
评论(0)
推荐(0)
2021年8月24日
5.视图
摘要: 1. 2. 转发是发生在服务器内,重定向是发生在浏览器间的; 转发可以访问WEB-INFO下的内容,而重定向不行; 执行上面的代码,结果是,页面的地址栏中是“/testForWard”,显示的是success页面的内容 3. 执行这段代码,地址栏显示的是“/testThymeleafView”,显示
阅读全文
posted @ 2021-08-24 22:47 L1998
阅读(28)
评论(0)
推荐(0)
2021年8月23日
4.向application域共享数据
摘要: //向application(ServletContext)域共享数据 @RequestMapping("/testApplication") public String testApplication(HttpSession session){ ServletContext application
阅读全文
posted @ 2021-08-23 20:12 L1998
阅读(43)
评论(0)
推荐(0)
3.向Session域共享数据
摘要: //向Session域共享数据 @RequestMapping("/testSession") public String testSession(HttpSession session){ session.setAttribute("testSessionScope","hello,Session
阅读全文
posted @ 2021-08-23 20:02 L1998
阅读(42)
评论(0)
推荐(0)
2.域对象共享数据
摘要: index.html 1 <!DOCTYPE html> 2 <html lang="en" xmlns:th="http://www.thymeleaf.org"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>Title</title> 6 </head>
阅读全文
posted @ 2021-08-23 19:54 L1998
阅读(90)
评论(0)
推荐(0)
1.参数传递
摘要: <!DOCTYPE html> <html lang="en" xmlns:th="http://www.thymeleaf.org"> <head> <meta charset="UTF-8"> <title>传参测试页面</title> </head> <body> <a th:href="@{
阅读全文
posted @ 2021-08-23 15:06 L1998
阅读(31)
评论(0)
推荐(0)
2021年7月2日
AVL树
摘要: 1 package AVLTree2; 2 3 public class Node { 4 int val; 5 Node left; 6 Node right; 7 8 public Node(int val) { 9 this.val = val; 10 } 11 12 @Override 13
阅读全文
posted @ 2021-07-02 23:12 L1998
阅读(27)
评论(0)
推荐(0)
2021年7月1日
IO流
摘要: 1.字节流 1.1 InputStream 1.1.1 FileInputStream (1) read()方法 注: 1、此方法是从输入流中读取一个数据的字节,即每调用一次read方法,从FileInputStream中读取一个字节。 2、返回下一个数据字节,如果已达到文件末尾,返回-1。 3、如
阅读全文
posted @ 2021-07-01 17:22 L1998
阅读(51)
评论(0)
推荐(0)
2021年6月28日
DP---股票买卖
摘要: 1.允许多次交易 法一:DP 1 //允许多次交易 2 public int maxProfit(int[] prices) { 3 4 int len = prices.length; 5 int[][] dp = new int[len][2]; 6 dp[0][0] = 0; 7 dp[0][
阅读全文
posted @ 2021-06-28 22:51 L1998
阅读(119)
评论(0)
推荐(0)
DP---01背包问题
摘要: 背包的最大容积为:8 dp[i][j]表示将前i件物品装进限重为j的背包可以获得的最大价值。 注:j表示的是当前背包的容积,即它还能容纳多少东西,而不是当前背包中物品的总体积。所以,随着物品的加入,j会减小,及容积减小。 转移状态方程: dp[i][j]=dp[i-1][j-w[i]]+v[i]的理
阅读全文
posted @ 2021-06-28 22:33 L1998
阅读(52)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
···
10
下一页
公告