
SpringBoot Web开发
文章平均质量分 89
SpringBoot Web开发
lillllllll
无
展开
-
Spring Cloud+eureka+feign实现微服务与负载均衡
本例中我们在spring boot cloud框架下用,eureka和feign搭建一个简单的基于微服务的分布式系统。该为服务系统只有四个模块,即四个微服务:两个生产模块ProviderModule和ProviderModule2,模拟服务提供方,比如订单服务;一个调用模块InvokeModule,调用两个生产模块,模拟服务消费。一个注册服务模块eurekaServerModule,用来提供微服务的注册和发现。系统服务注册与发现用eureka,服务远程调用feign,并且feign集成有负载原创 2021-10-13 21:39:26 · 853 阅读 · 1 评论 -
Spring Boot MVC中的代码配置--WebMvcConfigurer
SpringFramework原本使用的是如下面代码显示的xml配置,这种xml配置曾经让很多程序员头疼,由于一个字符不对而产生一大堆不知道原因的错误,尤其是xmlns种约束文件的引入更是繁杂。<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:mvc="http://www.springframework.org/schem原创 2020-10-28 15:29:09 · 1148 阅读 · 1 评论 -
Thymeleaf语法基础
SpringBoot推荐使用的模板是Thymeleaf,而不是JSP,看完Thymeleaf后感觉是有道理的。一篇博客关于Thymeleaf的简述写得比较好:https://blog.youkuaiyun.com/u014204541/article/details/102697966更详细的学习还是要查官网www.thymeleaf.org/下表给出了一些标签的基本用法关键字 功能介绍 案例 th:id 替换id <input th:id="'xxx' .原创 2020-10-23 22:36:42 · 414 阅读 · 0 评论 -
spring boot + Vue.js实现表格分页
前台页面<!DOCTYPE html><html xmlns:th="http://www.thymeleaf.org" xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"><head><meta ...原创 2019-11-22 22:33:03 · 465 阅读 · 0 评论 -
spring boot在项目中同时使用 jpa 与MyBatis操作数据库
spring boot mvc 基本配置请参考前面的博客本教程提供一个简单的jps数据库操作案例,更详细的内容请参考官方文档(注意spring boot不同版本应该有对应的文档,因为版本之间有些地方是不一样的):https://docs.spring.io/spring-data/jpa/docs/current/reference/html/#reference项目结构如下:1、在pom.xml添加依赖 <dependency> ...原创 2020-10-22 11:22:32 · 8141 阅读 · 1 评论 -
spring boot mvc入门与配置(二)
添加和编写基本的mvc功能导入后的结构如下图所示DemoApplication类是启动类,里面有main函数,并且运行的时候要按照java application来运行package com.example.demo;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.EnableAutoConfiguration;import org.sp.原创 2020-10-21 15:20:10 · 351 阅读 · 1 评论 -
spring boot mvc入门与配置(一)
一、在网站http://start.spring.io/选配maven模板二、在上图点击 explore按钮查看模型pom.xml配置,如下图所示:3、点击下载(download)按钮下载spring模板,这里名称是demo.zip文件4、加压后在eclipse中导入模板...原创 2020-10-21 15:02:19 · 361 阅读 · 1 评论 -
nodejs+vuejs实现表格分页与CRUD操作
本文实现了最轻量级的Web表格分页和数据库CRUD操作。分页类在nodejs后端定义,然后传到前端vuejs页面,实现了数据和页面显示逻辑分离。pager类:由pagerF类定义,代码如下(实现思路参考我博客文章https://blog.youkuaiyun.com/lillllllll/article/details/102636208)module.exports =function(total...原创 2019-11-27 07:30:35 · 743 阅读 · 0 评论