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

浙公网安备 33010602011771号