自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(56)
  • 收藏
  • 关注

原创 spring-security注解配置

<?xml version="1.0" encoding="UTF-8"?><!-- 配置不需要权限就能访问资源 css js --><security:http pattern="/css/**" security="none"></security:http><security:http pattern="/js/**" se...

2019-11-18 21:45:06 390

原创 dubbo生产者和消费者

@RequestMapping("/order")@RestControllerpublic class OrderController {// com.itheima.service.UserService//loadbalance配置负载均衡(默认随机,轮训,最少活跃数,一致性hash)//retries重试默认2次 + 调用一次@Reference(loadbalance ...

2019-10-31 21:32:32 562

原创 spring练习

public interface UserMapper {public User selectUserById(@Param("id")Long id);public void deleteUserById(@Param("id")long id);}public interface UserService {public User findUserById(Long id);pu...

2019-10-30 18:54:16 406

原创 vue生命周期

Title {{msg}}

2019-10-28 21:37:31 164

原创 旅游网CategoryDaoImpl

public class CategoryDaoImpl implements CategoryDao{JdbcTemplate jdbcTemplate = new JdbcTemplate(C3P0Util.getDataSource());@Overridepublic List queryAll() {String sql = “select * from tab_category...

2019-10-25 22:00:19 178

原创 旅游网CategoryRedisDaoImpl

public class CategoryRedisDaoImpl implements CategoryDao {//获得jedisprivate Jedis jedis = JedisUtil.getJedis();@Overridepublic List<Category> queryAll() { //获得jedis查询到的字符串集合 List<S...

2019-10-23 20:27:18 183

原创 旅游网FavoriteDaoImpl

public class FavoriteDaoImpl implements FavoriteDao {JdbcTemplate jdbcTemplate = new JdbcTemplate(C3P0Util.getDataSource());@Overridepublic int queryRouteByUidCount(int uid) { String sql = "sel...

2019-10-22 22:00:02 190 1

原创 旅游网RouteDaoImpl

public class RouteDaoImpl implements RouteDao {/** * 人气旅游:是每个旅游线路收藏数量的降序获取前4条数据进行显示; * 最新旅游:是每个旅游线路上架时间的降序获取前4条数据进行显示; * 主题旅游:是每个旅游线路过滤为主题旅游的获取前4条数据进行显示(上架时间降序); * <p> * 前提: 所有被查到的数据,都必须是已...

2019-10-20 21:43:46 233

原创 旅游网UserDaoImpl

public class UserDaoImpl implements UserDao {JdbcTemplate jdbcTemplate = new JdbcTemplate(C3P0Util.getDataSource());@Override//通过email判断该用户是否存在public List quaryByEmail(String email) {String sql =...

2019-10-19 21:47:20 192

原创 旅游网FavoriteServiceImpl

public class FavoriteServiceImpl implements FavoriteService {private FavoriteDao dao = new FavoriteDaoImpl();private RouteDao routeDao = new RouteDaoImpl();@Override/*** 因为传入的参数也是分页类,所以直接路线传入分页类中...

2019-10-17 21:57:16 153

原创 旅游网RouteServiceImpl

public class RouteServiceImpl implements RouteService {RouteDaoImpl dao = new RouteDaoImpl();SellerDaoImpl sellerDao = new SellerDaoImpl();RouteImgDaoImpl routeImgDao = new RouteImgDaoImpl();Categ...

2019-10-16 21:51:33 157

原创 旅游网UserServiceImpl

public class UserServiceImpl implements UserService {UserDaoImpl dao = new UserDaoImpl();@Overridepublic Boolean existsEmail(String email) { List<User> quaryByEmail = dao.quaryByEmail(ema...

2019-10-14 20:19:12 337

原创 旅游网FavoriteServlet

public class FavoriteServlet extends ActionServlet {private FavoriteService favoriteService = new FavoriteServiceImpl();protected void myFavorite(HttpServletRequest request, HttpServletResponse resp...

2019-10-13 21:50:10 199

原创 旅游网RouteServlet

public class RouteServlet extends ActionServlet {private RouteServiceImpl routeService = new RouteServiceImpl();//精选路线传递到前端的方法protected void handPick(HttpServletRequest request, HttpServletResponse...

2019-10-12 14:32:39 220

原创 旅游网用户Servlet

public class UserServlet extends ActionServlet {UserServiceImpl userService = new UserServiceImpl();protected void active(HttpServletRequest request, HttpServletResponse response) throws ServletExce...

2019-10-10 22:05:32 164

原创 数据库语句多个条件书写

public int queryRecordCount(String word, String cid) { StringBuilder sql = new StringBuilder(); sql.append("select count(*) from tab_route where rflag = 1"); List<Object> parameter...

2019-10-08 20:14:08 292

原创 通讯录查询项目--通过id以及通过邮箱查询

通过id查询:public class QueryByIdServlet extends HttpServlet { ContactServiceImpl contactService = new ContactServiceImpl(); protected void doPost(HttpServletRequest request, HttpServletResponse ...

2019-09-28 16:53:23 297

原创 通讯录查询项目-分页查询servlet

public class ContactQueryServlet2 extends HttpServlet {ContactServiceImpl contactService = new ContactServiceImpl();protected void doPost(HttpServletRequest request, HttpServletResponse response) th...

2019-09-27 19:02:29 190

原创 通讯录查询项目--service层

public class ContactServiceImpl implements ContactService {ContactDaoImpl dao = new ContactDaoImpl();ContactRedisDao redisDao = new ContactRedisDao();@Overridepublic List<Contact> queryAll()...

2019-09-24 19:30:25 294

原创 前一篇Dao层加上redis技术

public class ContactRedisDao implements ContactDao {@Overridepublic List<Contact> queryAll() { Jedis jedis = JedisUtil.getJedis(); //因为返回值是list,所以用lrange方法 List<String> conta...

2019-09-23 21:03:07 614

原创 通讯录查询项目--Dao层

public class ContactDaoImpl implements ContactDao {private JdbcTemplate jdbcTemplate = new JdbcTemplate(DruidUtils.getDataSource());@Overridepublic List<Contact> queryAll() { String sql =...

2019-09-21 21:08:05 323

原创 利用Servlet技术实现前后端

public class ContactServlet extends HttpServlet {private Dao dao = new Dao();protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {re...

2019-09-20 19:47:02 193

原创 以session技术实现的初步购物车案例---展示层

@WebServlet("/show")public class ShowServlet extends HttpServlet {protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {//设置字符集reque...

2019-09-18 21:49:18 205

原创 以session技术实现的初步购物车案例---商品层

public class AddToCarServlet extends HttpServlet {protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {//设置字符集request.setCharacterEn...

2019-09-17 18:39:49 263

原创 网站访问次数Demo

public class TotalAnLiServlet extends HttpServlet {protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {//设置编码和解码的字符集request.setChar...

2019-09-15 21:05:46 166

原创 Servlet登录的初步跳转

package day02Demo.AnLi;import org.apache.commons.beanutils.BeanUtils;import javax.servlet.ServletException;import javax.servlet.annotation.WebServlet;import javax.servlet.http.HttpServlet;import ...

2019-09-14 21:54:56 313

原创 对Servlet生命周期的代码实验

import javax.servlet.*;import javax.servlet.annotation.WebServlet;import java.io.IOException;@WebServlet("/lifecycle")public class LifeCycleServlet implements Servlet {@Overridepublic void init(...

2019-09-10 15:39:28 315

原创 Bootstrap案例

黑马旅游网<!-- Bootstrap --><link href="../css/bootstrap.min.css" rel="stylesheet"><!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery,所以必须放在前边) --><scrip...

2019-09-09 18:44:25 314

原创 JQuery表单验证

员工信息录入 真实姓名(不能为空 ,没有其他要求) 登录名(不能为空,长度在5-8之间,可以包含中文字符(一个汉字算一个字符)) ...

2019-09-08 20:45:10 141

原创 jquery入门三大案例

案例1-弹出广告案例2-隔行换色案例3-全选全不选

2019-09-06 19:43:46 153

原创 注册表单检验.html

注册表单校验 会员注册USER REGISTER 用户名: 密码: ...

2019-09-05 18:43:36 208

原创 抽奖.html

jquery案例之抽奖

2019-09-03 18:34:28 409

原创 HTML-DOM动态表格

HTML-DOM动态表格<style> table { border: 1px solid; margin: auto; width: 500px; } td, th { text-align: center; border: 1px solid; ...

2019-08-31 19:24:04 318

原创 DOM动态表格

DOM动态表格<style> table { border: 1px solid; margin: auto; width: 500px; } td, th { text-align: center; border: 1px solid; } ...

2019-08-30 19:04:34 177

原创 轮播图.html

轮播图

2019-08-28 19:51:32 123

原创 javaSE的综合运用

public class StoreEntry {// 文件的存储路径private static final String GOODS_INFO_FILE_PATH = "goods.txt";public static void main(String[] args) throws IOException { // 创建用户集合的对象 ArrayList<Use...

2019-08-27 18:40:06 350

原创 计算字符串中字符出现的次数(集合的综合运用)

public static void main(String[] args) {Scanner sc = new Scanner(System.in);System.out.println(“请输入字符串:”);String s = sc.next();char[] cs = s.toCharArray();HashSet set = new HashSet<>();for...

2019-08-25 21:59:17 163

原创 九九乘法表.html

99乘法表

2019-08-24 18:59:58 726

原创 美化注册页面.html

美化注册页面 会员注册   USER REGISTER </td> </tr> <tr&...

2019-08-23 19:14:54 1180

原创 表格.html

简单的表格 编号 姓名 年龄 性别 1 锁哥 18 男 2 黑旋风 19 男 3 助教 2...

2019-08-21 19:11:19 127

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除