01 2022 档案
摘要:1、安装 go get -u github.com/gin-gonic/gin 2、在go.mod写入代码 : require github.com/gin-gonic/gin v1.7.7 3、更新下mod包,test为项目名 go mod init test go mod tidy 5、引入gi
阅读全文
摘要:go语言 JSON 读写到文件 func readFile() { filePtr, err := os.Open("person_info.json") if err != nil { fmt.Println("Open file failed [Err:%s]", err.Error()) re
阅读全文
摘要:Spring使用的注解大全和解释 注解解释 @Controller 组合注解(组合了@Component注解),应用在MVC层(控制层),DispatcherServlet会自动扫描注解了此注解的类,然后将web请求映射到注解了@RequestMapping的方法上。 @Service 组合注解(组
阅读全文
摘要:beans的XML 配置文件 <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XML
阅读全文