摘要: //对于数据库单表增删改查,为缩短开发效率,借助idea和mybatis的插件构建一套持久层业务 //idea 连接数据库 DataBase --> mysql -->连接数据库 //集成mybatis插件 pom.xml配置 <!-- mybatis generator 自动生成代码插件 --> 阅读全文
posted @ 2021-01-29 23:34 雪瞳 阅读(1114) 评论(0) 推荐(0) 编辑
摘要: // 开发大型maven项目时 对项目代码进行更正需要对项目进行重启,但是连续重启大幅度降低开发效率,记录SpringBoot项目热部署的步骤 按两下shift键 搜索registry // 添加pom热部署依赖 <!-- 热部署DevTools --> <dependency> <groupId> 阅读全文
posted @ 2021-01-25 22:50 雪瞳 阅读(69) 评论(0) 推荐(0) 编辑
摘要: // 搭建服务中心 构建Maven父子模块 // 搭建eureka服务中心 @SpringBootApplication @EnableEurekaServer public class EurekaApplication { private static final Logger LOGGER = 阅读全文
posted @ 2021-01-24 23:28 雪瞳 阅读(122) 评论(0) 推荐(0) 编辑
摘要: //对于SpringBoot所推崇的去除xml化编程需求,将原始的spring-*.xml文件使用配置类的方式进行注入 //mybatis // 该标签表示将这个类注入到Spring的IOC容器内 @Configuration // 配置mybatis Mapper的扫描路径 @MapperScan 阅读全文
posted @ 2021-01-24 23:22 雪瞳 阅读(542) 评论(0) 推荐(0) 编辑
摘要: //SpringBoot是对SSM框架的进一步改进与封装,随着微服务时代的来临,使用多个子模块组建一个大的应用项目成为时下后端开发的趋势。 //数据库Dao层 使用Mybatis框架 @Repository public interface ShopDao { /** * 返回查询条件的总数 * @ 阅读全文
posted @ 2021-01-24 23:14 雪瞳 阅读(382) 评论(0) 推荐(0) 编辑
摘要: package com.swust.skynet; import com.swust.constant.Constants; import com.swust.utils.StringUtils; import org.apache.spark.util.AccumulatorV2; /** * I 阅读全文
posted @ 2020-05-11 21:54 雪瞳 阅读(100) 评论(0) 推荐(0) 编辑
摘要: package com.swust.action; import com.alibaba.fastjson.JSONObject; import com.swust.constant.Constants; import com.swust.skynet.SelfDefineAccumulator; 阅读全文
posted @ 2020-05-10 20:23 雪瞳 阅读(114) 评论(0) 推荐(0) 编辑
摘要: package com.swust.jdbc; import com.swust.constant.Constants; import com.swust.sparkconf.ConfigurationManager; import java.sql.*; import java.util.Link 阅读全文
posted @ 2020-05-09 17:03 雪瞳 阅读(102) 评论(0) 推荐(0) 编辑
摘要: package spark.action.factory; import org.apache.spark.api.java.JavaRDD; import org.apache.spark.api.java.JavaSparkContext; import org.apache.spark.sql 阅读全文
posted @ 2020-05-08 21:11 雪瞳 阅读(124) 评论(0) 推荐(0) 编辑
摘要: package data.bysj.tree; import org.apache.spark.Accumulator; import org.apache.spark.api.java.JavaPairRDD; import org.apache.spark.api.java.JavaRDD; i 阅读全文
posted @ 2020-05-07 16:34 雪瞳 阅读(124) 评论(0) 推荐(0) 编辑