优化readme文件
parent
526412c87d
commit
66d061f8ed
|
@ -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)
|
||||
|
||||
### 二、知识储备
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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 2023年11月09日 15时38分
|
||||
**/
|
||||
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);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,4 @@
|
|||
myBean.(class)=com.xcs.spring.bean.MyBean
|
||||
myBean.message=hello world
|
||||
myBean.(lazy-init)=true
|
||||
myBean.(scope)=prototype
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE>
|
||||
<mapper namespace="com.ehome.academy.academy.service.persist.mapper.AgentVideoCategoryMapper">
|
||||
|
||||
</mapper>
|
|
@ -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)
|
||||
|
||||
### 二、知识储备
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
### 二、知识储备
|
||||
|
||||
|
|
Loading…
Reference in New Issue