摘要: MYSQL 安装MySQL 这里建议大家使用压缩版,安装快,方便.不复杂. 软件下载 mysql5.7 64位下载地址: https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.19-winx64.zip 电脑是64位的就下载使用64位版本的! 阅读全文
posted @ 2021-06-21 13:23 川上富江 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1、基本概念 1.1、前言 web开发: web,网页的意思,www.baidu.com· 静态web html,sss 提供给所有人看的数据始终不会发生变化! 动态web 淘宝,几乎是所有的网站; 提供给所有人看的数据始终会发生变化,每个人在不同的时间,不同的地点看到的信息各不相同! 技术栈:Se 阅读全文
posted @ 2021-06-21 13:20 川上富江 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 1. 启动zookeeper ! 2. IDEA创建一个空项目; 3.创建一个模块,实现服务提供者:provider-server , 选择web依赖即可 4.项目创建完毕,我们写一个服务,比如卖票的服务; 编写接口 package com.kuang.provider.service; publi 阅读全文
posted @ 2021-06-08 14:26 川上富江 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 只是在参数前加了@pathvariable 阅读全文
posted @ 2021-06-06 16:34 川上富江 阅读(28) 评论(0) 推荐(0) 编辑
摘要: main 方法上 加这个注解 @EnableAsync asyncservice @Service public class AsyncService { //告诉spring这是个异步任务@Async @Async public void hello(){ try { Thread.sleep(3 阅读全文
posted @ 2021-06-02 14:39 川上富江 阅读(39) 评论(0) 推荐(0) 编辑
摘要: <!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter --><dependency> <groupId>org.mybatis.spring.boot</groupId> 阅读全文
posted @ 2021-05-16 13:20 川上富江 阅读(715) 评论(0) 推荐(0) 编辑
摘要: package com.yao.config; import com.alibaba.druid.pool.DruidDataSource; import com.alibaba.druid.support.http.StatViewServlet; import org.springframewo 阅读全文
posted @ 2021-05-13 20:36 川上富江 阅读(49) 评论(0) 推荐(0) 编辑
摘要: @RestController public class JDBCController { @Autowired JdbcTemplate jdbcTemplate; //查询数据库的所有信息 //没有实体类 数据库中有东西 用Map 获取 @GetMapping("/userList") publ 阅读全文
posted @ 2021-05-13 13:28 川上富江 阅读(227) 评论(0) 推荐(0) 编辑
摘要: 引入Thymeleaf 怎么引入呢,对于springboot来说,什么事情不都是一个start的事情嘛,我们去在项目中引入一下。给大家三个网址: Thymeleaf 官网:https://www.thymeleaf.org/ Thymeleaf 在Github 的主页:https://github. 阅读全文
posted @ 2021-05-09 14:34 川上富江 阅读(99) 评论(0) 推荐(0) 编辑
摘要: mybatis-config.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE configuration PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd 阅读全文
posted @ 2021-04-18 13:30 川上富江 阅读(32) 评论(0) 推荐(0) 编辑