Springboot使用FastJson后,接口返回中文乱码的问题解决(两种解决方式) 方法一 import java.util.ArrayList; import java.util.List; import org.springframework.context.annotation.Confi ...
分类:
编程语言 时间:
2020-03-18 22:10:08
阅读次数:
66
1.在模板中使用变量,需要将变量放到'{{ 变量 }}'中 2.如果想要访问对象的属性,可以通过'对象.属性名'来访问 3.如果想要访问字典的键,不能通过'[ ]'来访问,而且字典中最好不要定义'key','value','item'等 例如: context = { 'persons':[ 'us ...
分类:
其他好文 时间:
2020-03-18 21:51:15
阅读次数:
64
说明 在spring4之后,想要使用注解形式,必须得要引入aop的包 在配置文件当中,还得要引入一个context约束 1、Bean的实现 我们之前都是使用 bean 的标签进行bean注入,但是实际开发中,我们一般都会使用注解! 1. 配置扫描哪些包下的注解 2. 在指定包下编写类,增加注解 3. ...
分类:
编程语言 时间:
2020-03-18 18:55:40
阅读次数:
73
简介 AJAX = Asynchronous JavaScript and XML(异步的 JavaScript 和 XML)。 AJAX 是一种在无需重新加载整个网页的情况下,能够更新部分网页的技术。 Ajax 不是一种新的编程语言,而是一种用于创建更好更快以及交互性更强的Web应用程序的技 jQ ...
分类:
Web程序 时间:
2020-03-18 11:34:01
阅读次数:
77
首先导入springboot 的 web 包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> restTem ...
分类:
编程语言 时间:
2020-03-17 21:07:32
阅读次数:
73
1、切换上下文 contexts = self.driver.contexts #获取全部的上下文 self.driver.switch_to.context(contexts[-1]) #切换到webview页面 2、webview调试 前提条件: 1、手机与电脑连接,手机开启usb调试模式 2、 ...
分类:
移动开发 时间:
2020-03-17 19:11:48
阅读次数:
99
我们先来了解一下request.setAttribute和request.getAttribute()这两种方法的作用。 request.getAttribute("nameOfObj"); 可得到jsp页面表单中输入框内的value。(其实表单控件中的Object的name与value是存放在一个 ...
分类:
其他好文 时间:
2020-03-17 14:15:02
阅读次数:
91
A Survey of Long-Term Context in Transformers 2020-03-17 10:08:32 Source: https://www.pragmatic.ml/a-survey-of-methods-for-incorporating-long-term-con ...
分类:
其他好文 时间:
2020-03-17 10:16:25
阅读次数:
78
1、安装goget-ugithub.com/gin-gonic/gin2、简单实现helloworld实例packagemainimport("github.com/gin-gonic/gin""net/http")funcmain(){router:=gin.Default()//创建路由router.GET("/index",func(c*gin.Context){c.String(http.
分类:
其他好文 时间:
2020-03-16 23:09:54
阅读次数:
74
application.yml server: port: 8090 servlet: context-path: /springboot HelloController package com.komiles.study.controller; import org.springframework ...
分类:
编程语言 时间:
2020-03-16 19:02:43
阅读次数:
62