摘要: 在springmvc中json返回中文时会显示乱码,只需要在@RequestMapping注解中加入produces = "application/json; charset=utf-8",就可以解决。 @RequestMapping(value = "/getrolelist",produces 阅读全文
posted @ 2021-10-07 17:38 陈词调 阅读(172) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-config.dt 阅读全文
posted @ 2021-09-25 10:20 陈词调 阅读(26) 评论(0) 推荐(0)
摘要: 在pom.xml中引入 <build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</ 阅读全文
posted @ 2021-09-25 10:17 陈词调 阅读(60) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2021-09-23 22:04 陈词调 阅读(93) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance 阅读全文
posted @ 2021-09-23 16:37 陈词调 阅读(20) 评论(0) 推荐(0)
摘要: CREATE TABLE `app_user` ( `id` BIGINT(20) UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(50) DEFAULT '' COMMENT'用户昵称', `email` VARCHAR(50) NOT NULL 阅读全文
posted @ 2021-05-11 09:19 陈词调 阅读(734) 评论(0) 推荐(0)
摘要: Mysql安装 1.下载mysql zip 2.将zip解压到自定义位置 3.右击我的电脑→属性→高级系统设置→环境变量→系统变量→双击path→新建→在里面填入sql安装地址的bin目录路径→确定。 4.在sql安装目录的根目录下新建my.ini文件,输入如下 [mysqld] #设置3306端口 阅读全文
posted @ 2021-05-03 11:36 陈词调 阅读(105) 评论(0) 推荐(0)
摘要: 集中式和分布式的区别是: 你的本地是否有完整的版本库历史! 假设SVN服务器没了,那你丢掉了所有历史信息,因为你的本地只有当前版本以及部分历史信息。 假设GitHub服务器没了,你不会丢掉任何git历史信息,因为你的本地有完整的版本库信息。你可以把本地的git库重新上传到另外的git服务商。 才感觉 阅读全文
posted @ 2021-04-24 11:15 陈词调 阅读(368) 评论(0) 推荐(0)
摘要: css渐变 一.分类 1.线性渐变:向上,向下,向左,向右,对角线。 2.径向渐变:由其中心定义 二.渐变 1.需要至少两个色标,色标是呈现平滑过渡的颜色,还可以设置起点和方向(默认的方向是自上而下)。 2.语法为:backgroud-image:linear-gradient(方向,颜色1,颜色2 阅读全文
posted @ 2021-04-20 16:41 陈词调 阅读(486) 评论(0) 推荐(0)
摘要: public class mousePaintDemo { public static void main(String[] args) { Mymouse.test(new Mymouse("画笔")); } } //自定义的frame类 class Mymouse extends Frame { 阅读全文
posted @ 2021-04-05 09:33 陈词调 阅读(390) 评论(0) 推荐(0)