上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页
  2022年1月9日
摘要: 1.导入依赖 <dependency> <groupId>org.apache.velocity</groupId> <artifactId>velocity-engine-core</artifactId> <version>2.3</version> </dependency> 2.在test/ 阅读全文
posted @ 2022-01-09 15:05 upupup-999 阅读(327) 评论(0) 推荐(1)
摘要: 以下规约只针对本模块,更全面的文档参考《阿里巴巴Java开发手册》:五、MySQL数据库 1、库名与应用名称尽量一致 2、表名、字段名必须使用小写字母或数字,禁止出现数字开头, 3、表名不使用复数名词 4、表的命名最好是加上“业务名称_表的作用”。如,edu_teacher 5、表必备三字段:id, 阅读全文
posted @ 2022-01-09 14:12 upupup-999 阅读(25) 评论(0) 推荐(0)
  2022年1月8日
摘要: 一 使用方法 1.导入依赖 <!--mybatis-plus--> <dependency> <groupId>com.baomidou</groupId> <artifactId>mybatis-plus-boot-starter</artifactId> <version>3.0.5</vers 阅读全文
posted @ 2022-01-08 22:21 upupup-999 阅读(42) 评论(0) 推荐(0)
  2022年1月7日
摘要: JDK 动态代理机制 1.定义一个接口及其实现类; public interface Rent { public void rent(); } public class Host implements Rent{ public void rent() { System.out.println("房东 阅读全文
posted @ 2022-01-07 23:08 upupup-999 阅读(51) 评论(0) 推荐(0)
摘要: 1.导入依赖 <!--security--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-security</artifactId> </dependency> 2. 阅读全文
posted @ 2022-01-07 20:53 upupup-999 阅读(36) 评论(0) 推荐(0)
摘要: 1.定义一个公共页面导航栏 <!--头部导航栏--> <nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0" th:fragment="topbar"> <a class="navbar-brand col-sm-3 阅读全文
posted @ 2022-01-07 16:58 upupup-999 阅读(400) 评论(0) 推荐(0)
摘要: 1.用户登录成功后把用户信息放入session @Controller public class LoginController { @RequestMapping("/user/login") public String login(@RequestParam("username") String 阅读全文
posted @ 2022-01-07 16:32 upupup-999 阅读(64) 评论(0) 推荐(0)
摘要: 计算机计算数据以补码的方式进行计算正数原码、反码、补码不变负数(-10):以8bit(位)表示原码 > 1000 1010反码 > 1111 0101(符号位不变,其他位取反)补码 > 1111 0110(反码基础上 + 1)所以会 -10 会输出:1111…0110-10 >> 2 :1111…1 阅读全文
posted @ 2022-01-07 11:05 upupup-999 阅读(110) 评论(0) 推荐(0)
  2022年1月6日
摘要: 主要原理 public Locale resolveLocale(HttpServletRequest request) { Locale defaultLocale = this.getDefaultLocale(); if (defaultLocale != null && request.ge 阅读全文
posted @ 2022-01-06 22:46 upupup-999 阅读(107) 评论(0) 推荐(0)
摘要: @Configurationpublic class MyMvcConfig implements WebMvcConfigurer { // public interface ViewResolver 实现了视图解析器接口的类,我们就可以把它看做视图解析器 @Bean public ViewRes 阅读全文
posted @ 2022-01-06 21:47 upupup-999 阅读(46) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 31 下一页