发布时间:2023-06-19 10:30
package com.Cai.pojo;
import lombok.Data;
/**
* @Description
* @Author Cai
* @Date 2021-03-03 16:33
*/
@Data
public class Hello {
private String string;
}
xml
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
https://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="hello" class="com.Cai.pojo.Hello">
<property name="string" value="Spring"/>
bean>
beans>
MyTest
import com.Cai.pojo.Hello;
import lombok.val;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
/**
* @Description
* @Author Cai
* @Date 2021-03-03 16:48
*/
public class MyTest {
public static void main(String[] args) {
// 获取Spring的对象
ApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");
// 取出对象
Hello hello = (Hello) context.getBean("hello");
System.out.println(hello.getString());
}
}
Pytorch 导入tersorboard 的 SummaryWriter时报错
【云原生之Docker实战】使用Docker部署反向代理 Nginx Proxy Manager
End-to-End Single Image Fog Removal using Enhanced Cycle ConsistentAdversarial Networks-2019
vue+neo4j +纯前端(neovis.js / neo4j-driver) 实现 知识图谱的集成 大干货--踩坑无数!!!将经验分享给有需要的小伙伴
seaborn.load_dataset报错URLError: <urlopen error [WinError 10060] 由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。>