优化readme文件

master
xuchengsheng 2023-11-09 21:15:38 +08:00
parent 526412c87d
commit 66d061f8ed
7 changed files with 55 additions and 3 deletions

View File

@ -13,7 +13,7 @@
### 一、基本信息
✒️ **作者** - Lex 📝 **博客** [掘金](https://juejin.cn/user/4251135018533068/posts) 📚 **源码地址** - [github](https://github.com/xuchengsheng/spring-reading)
✒️ **作者** - Lex 📝 - **博客** [掘金](https://juejin.cn/user/4251135018533068/posts) 📚 **源码地址** - [github](https://github.com/xuchengsheng/spring-reading)
### 二、知识储备

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>spring-resources</artifactId>
<groupId>com.xcs.spring</groupId>
<version>0.0.1-SNAPSHOT</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>spring-resource-propertiesPersister</artifactId>
<properties>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.target>11</maven.compiler.target>
</properties>
</project>

View File

@ -0,0 +1,24 @@
package com.xcs.spring;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.support.ResourcePropertiesPersister;
import org.springframework.util.PropertiesPersister;
import java.io.IOException;
import java.util.Properties;
/**
* @author xcs
* @date 20231109 1538
**/
public class PropertiesPersisterDemo {
public static void main(String[] args) throws IOException {
Properties loadProperties = new Properties();
PropertiesPersister propertiesPersister = ResourcePropertiesPersister.INSTANCE;
propertiesPersister.load(loadProperties, new ClassPathResource("bean-definitions.properties").getInputStream());
System.out.println("loadProperties = " + loadProperties);
}
}

View File

@ -0,0 +1,4 @@
myBean.(class)=com.xcs.spring.bean.MyBean
myBean.message=hello world
myBean.(lazy-init)=true
myBean.(scope)=prototype

View File

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE>
<mapper namespace="com.ehome.academy.academy.service.persist.mapper.AgentVideoCategoryMapper">
</mapper>

View File

@ -14,7 +14,7 @@
### 一、基本信息
✒️ **作者** - Lex 📝 **博客** [掘金](https://juejin.cn/user/4251135018533068/posts) 📚 **源码地址** - [github](https://github.com/xuchengsheng/spring-reading)
✒️ **作者** - Lex 📝 **博客** - [掘金](https://juejin.cn/user/4251135018533068/posts) 📚 **源码地址** - [github](https://github.com/xuchengsheng/spring-reading)
### 二、知识储备

View File

@ -14,7 +14,7 @@
### 一、基本信息
✒️ **作者** - Lex 📝 **博客** [掘金](https://juejin.cn/user/4251135018533068/posts) 📚 **源码地址** - [github](https://github.com/xuchengsheng/spring-reading)
✒️ **作者** - Lex 📝 **博客** - [掘金](https://juejin.cn/user/4251135018533068/posts) 📚 **源码地址** - [github](https://github.com/xuchengsheng/spring-reading)
### 二、知识储备