Live2D

随笔分类 -  java

摘要:使用nacos作为springCloud配置中心,实现动态配置。 实现步骤 导入maven <!--配置服务发现--> <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba 阅读全文
posted @ 2024-06-21 15:50 六爻呈乾 阅读(156) 评论(0) 推荐(0)
摘要:Java(1995,2006,hadoop)基础 Markdown 了解计算机 硬件 cpu,主板、内存、io、冯.诺伊曼--计算机之父 软件 系统软件、应用软件 快捷键 alt+f4 基本dos 在文件夹下面,shift+右键 资源管理器的地址前面加上cmd+空格 dir--查看文件、cd--切换 阅读全文
posted @ 2021-09-01 23:01 六爻呈乾 阅读(46) 评论(0) 推荐(0)
摘要:Mybatis(ieda) 一款优秀的持久层框架 官网:Mybatis-3官网 Maven仓库: mavenRepositroy 数据库: CREATE TABLE `user`( `id` INT(20) NOT NULL PRIMARY KEY, `name` VARCHAR(30) DEFAU 阅读全文
posted @ 2021-08-16 17:55 六爻呈乾 阅读(73) 评论(0) 推荐(0)
摘要:package com.lix.demo4; import com.lix.demo3.Host; import com.lix.demo3.Rent; import java.lang.reflect.InvocationHandler; import java.lang.reflect.Meth 阅读全文
posted @ 2021-08-16 16:20 六爻呈乾 阅读(66) 评论(0) 推荐(0)
摘要:@Autowired: 自动装配通过类型(type),名字(name),如果Autowired不能唯一自动装配上属性,则需要通过@jQualifier(value="xxx")(别名) 1.1、@Autowired <?xml version="1.0" encoding="UTF-8"?> <be 阅读全文
posted @ 2020-10-30 11:27 六爻呈乾 阅读(82) 评论(0) 推荐(0)
摘要:bean作用域 单例模式(spring默认机制)全局仅产生一个对象 <bean id="user2" class="com.lix.pojo.User" c:age="18" c:name="ll" scope="singleton"/> 原型模式:每次从容器中get的时候都会生成新的对象 <bea 阅读全文
posted @ 2020-10-29 11:21 六爻呈乾 阅读(495) 评论(0) 推荐(0)
摘要:二、反射 reflection(反射) 1.1、初识反射: package com.lix.reflection; /** * * @author lix * 什么叫反射 */ public class Test extends Object { public static void main(St 阅读全文
posted @ 2020-10-22 17:43 六爻呈乾 阅读(109) 评论(0) 推荐(0)
摘要:注解的学习笔记 内置注解 package com.lix.annotation; /** * @author lix */ @SuppressWarnings("all") public class Test01 extends Object { //@Overide的重写 @Override pu 阅读全文
posted @ 2020-10-22 12:23 六爻呈乾 阅读(93) 评论(0) 推荐(0)
摘要:Mybatis(ieda) 一款优秀的持久层框架 官网:Mybatis-3官网 Maven仓库: <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.3</version> 阅读全文
posted @ 2020-10-22 11:32 六爻呈乾 阅读(131) 评论(1) 推荐(0)
摘要:Mybatis处理复杂Sql(association/collection) 多对一 多个学生,对应一个老师 学生:关联--多个学生关联一个老师(多对一) 老师:集合--一个老师有很多学生(一对多) 1.1、按照查询嵌套处理 <select id="getStudent" resultMap="St 阅读全文
posted @ 2020-10-21 12:25 六爻呈乾 阅读(135) 评论(0) 推荐(0)
摘要:注:官网炸裂看这里 入门 安装 要使用 MyBatis, 只需将 mybatis-x.x.x.jar 文件置于类路径(classpath)中即可。 如果使用 Maven 来构建项目,则需将下面的依赖代码置于 pom.xml 文件中: <dependency> <groupId>org.mybatis 阅读全文
posted @ 2020-10-14 22:32 六爻呈乾 阅读(61) 评论(0) 推荐(0)
摘要:9. Appendix(附录) 9.1. XML Schemas(xml模式) This part of the appendix lists XML schemas related to the core container. 附录的这一部分列出了与核心容器相关的XML模式。 9.1.1. The 阅读全文
posted @ 2020-09-29 10:53 六爻呈乾 阅读(223) 评论(0) 推荐(0)
摘要:8. Data Buffers and Codecs(数据缓冲区和编解码器) 8.1. Introduction(入门) The DataBuffer interface defines an abstraction over byte buffers. The main reason for in 阅读全文
posted @ 2020-09-29 10:52 六爻呈乾 阅读(320) 评论(0) 推荐(0)
摘要:7. Null-safety(空-安全) Although Java does not allow to express null-safety with its type system, Spring Framework now provides following annotations in 阅读全文
posted @ 2020-09-29 10:51 六爻呈乾 阅读(169) 评论(0) 推荐(0)
摘要:6. Spring AOP APIs 6.1. Introduction(入门) The previous chapter described the Spring’s support for AOP using @AspectJ and schema-based aspect definition 阅读全文
posted @ 2020-09-29 10:50 六爻呈乾 阅读(200) 评论(0) 推荐(0)
摘要:5. Aspect Oriented Programming with Spring(使用Spring进行面向切面编程) 5.1. Introduction(入门) Aspect-Oriented Programming (AOP) complements Object-Oriented Progr 阅读全文
posted @ 2020-09-29 10:48 六爻呈乾 阅读(368) 评论(0) 推荐(0)
摘要:4. Spring Expression Language (SpEL)(Spring表达式语言(SpEL)) 4.1. Introduction(入门) The Spring Expression Language (SpEL for short) is a powerful expression 阅读全文
posted @ 2020-09-29 10:44 六爻呈乾 阅读(243) 评论(0) 推荐(0)
摘要:3. Validation, Data Binding, and Type Conversion 3.1. Introduction(介绍;引进;采用;入门;传入) JSR-303/JSR-349 Bean Validation Spring Framework 4.0 supports Bean 阅读全文
posted @ 2020-09-29 10:41 六爻呈乾 阅读(273) 评论(0) 推荐(0)
摘要:2. Resources(计][环境] 资源;物力) 2.1. Introduction(介绍;引进;采用;入门;传入) Java’s standard java.net.URL class and standard handlers for various URL prefixes unfortu 阅读全文
posted @ 2020-09-29 10:35 六爻呈乾 阅读(194) 评论(0) 推荐(0)
摘要:Javaweb中的最常见错误及其解决方法 1、200:表示成功处理业务。 2、400 请求出错: 由于语法格式有误,服务器无法理解此请求。不作修改,客户程序就 无法重复此请求。 解决办法:,遇到400问题,最大几率是出现了数据类型不一致的问题,简单来说是Controller层不用正确读取你发送请求附 阅读全文
posted @ 2020-09-22 12:20 六爻呈乾 阅读(1399) 评论(0) 推荐(0)