SpringBoot+vue信息管理系统(3)

springboot+vue 审批工作流集成flowable(springboot实现工作流) 目前市场上有很多开源平台没有整合工作流,即使有,也是价格不菲的商业版,这次推荐的是在一个基础开发平台系统基础功能(用户管理,部门管理…)上整合了flowable工作流,你可以直接用来开发ERP,OA,CRM等企业级应用,不用再担心如何再去花大量的时间集成工作流进来,目前表单支持自定义拖拽,具体功能下面我们来探索吧。... 阅读详情

1、SpringBoot整合视图层技术

目前流行的模板引擎有两种:1、官方推荐的模板引擎Thymeleaf 2、FreeMarker,下面就来讲解一下这两者的区别:

1.1 Thymeleaf

作为新一代的Java模板引擎,类似于Velocity、FreeMarker等传统Java引擎。与传统的Java引擎不同的是:Thymeleaf支持HTML原型,同时SpringBoot也提供了Thymeleaf自动化配置解决方案,因此在springboot中使用Thymeleaf非常方便。SpringBoot整合Thymeleaf,主要步骤如下:

(1)pom.xml 引入依赖

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
           <!-- <exclusions>
                <exclusion>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-starter-tomcat</artifactId>
                </exclusion>
            </exclusions>-->
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-thymeleaf</artifactId>
        </dependency>

(2)配置Thymeleaf

SpringBoot为Thymeleaf提供了自动化配置类ThymeleafAutoConfiguration,相关的配置属性在ThymeleafProperties类中,ThymeleafProperties部分源码如下:

public class ThymeleafProperties {
    private static final Charset DEFAULT_ENCODING;
    public static final String DEFAULT_PREFIX = "classpath:/templates/";
    public static final String DEFAULT_SUFFIX = ".html";
    private boolean checkTemplate = true;
    private boolean checkTemplateLocation = true;
    private String prefix = "classpath:/templates/";
    private String suffix = ".html";
    private String mode = "HTML";
    private Charset encoding;
    private boolean cache;
    private Integer templateResolverOrder;
    private String[] viewNames;
    private String[] excludedViewNames;
    private boolean enableSpringElCompiler;
    private boolean renderHiddenMarkersBeforeCheckboxes;
    private boolean enabled;
    private final ThymeleafProperties.Servlet servlet;
    private final ThymeleafProperties.Reactive reactive;

    public ThymeleafProperties() {
        this.encoding = DEFAULT_ENCODING;
        this.cache = true;
        this.renderHiddenMarkersBeforeCheckboxes = false;
        this.enabled = true;
        this.servlet = new ThymeleafProperties.Servlet();
        this.reactive = new ThymeleafProperties.Reactive();
    }

由此可知默认的模板位置为:classpath:/templates/,默认模板文件的后缀为.html,如果用开发工具idea创建springBoot项目,模板目录会自动创建

如果开发者想自定义,可以在application.properties,中配置如下:

是否开启缓存,开发时可设置成false,默认为TRUE
spring.thymeleaf.cache=true
#检验模板是否存在,默认为true
spring.thymeleaf.check-template=true
#检验模板位置是否存在,默认为TRUE
spring.thymeleaf.check-template-location=true
#模板文件编码
spring.thymeleaf.encoding=UTF-8
#模板文件地址
spring.thymeleaf.prefix=classpath:/templates/
#Content-Type 配置
spring.thymeleaf.servlet.content-type=text/html
#模板文件后缀
spring.thymeleaf.suffix=.html

(3)配置控制器

创建实体类Book,然后创建Controller中的类,然这个类的返回类型变成ModelAndView,代码如下:

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "book")
public class Book {
	private Integer id;
	private String name;
	private String author;
	private Float price;
//省略 get\set方法
}
import org.sang.model.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;
import java.util.ArrayList;
import java.util.List;

@Controller
public class HelloController {

	@Autowired
	Book book;

	@GetMapping("/books")
	public ModelAndView hello(){
		List<Book> books=new ArrayList<>();
		Book book1=new Book();
		book1.setId(1);
		book1.setName("三国演义");
		book1.setAuthor("罗贯中");
		book1.setPrice(12f);
		books.add(book1);
		ModelAndView modelAndView=new ModelAndView();
		modelAndView.addObject("books",books);//页面遍历的属性名
		modelAndView.setViewName("books");//模板文件名
		return modelAndView;
	}
}

(4)创建视图

<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"> //这是 th标签使用的关键,一定要引入
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <th>图书编号</th>
        <th>图书名称</th>
        <th>图书作者</th>
        <th>图书价格</th>
    </tr>
    <tr th:each="book:${books}"> //books为属性名 book为别名 //th:each 为遍历 //th:text 为输出
        <td th:text="${book.id}"></td>
        <td th:text="${book.name}"></td>
        <td th:text="${book.author}"></td>
    </tr>

</table>

</body>
</html>

(5)运行结果

浏览器输入:https://localhost:8081/chapter02/books

关于Thymeleaf的相关信息可以https://www.thymeleaf.org 观看

1.2 整合FreeMarker

FreeMarker作为一个古老的模板引擎,可以用于web环境或者为web环境中。与Thymeleaf不同的是Freemarker需要经过解析才能在浏览器上看到数据显示。Freemarker不仅用来配置HTML页面模块,也可以用来配置电子邮件模块、配置文模板以及源码模板等。SpringBoot对FreeMarker也有很好的支持。步骤如下:

(1)在pom.xml添加项目依赖:

<dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-freemarker</artifactId>
</dependency>
<dependency>
         <groupId>org.springframework.boot</groupId>
         <artifactId>spring-boot-starter-web</artifactId>
</dependency>
        

(2)、配置FreeMarker

SpringBoot对FreeMarker也提供了自动化配置类FreeMarkerAutoConfiguration,相关的配置属性也在此类中,请看如下源码:

@ConfigurationProperties(
    prefix = "spring.freemarker"
)
public class FreeMarkerProperties extends AbstractTemplateViewResolverProperties {
    public static final String DEFAULT_TEMPLATE_LOADER_PATH = "classpath:/templates/";
    public static final String DEFAULT_PREFIX = "";
    public static final String DEFAULT_SUFFIX = ".ftlh";
    private Map<String, String> settings = new HashMap();
    private String[] templateLoaderPath = new String[]{"classpath:/templates/"};
    private boolean preferFileSystemAccess = true;

    public FreeMarkerProperties() {
        super("", ".ftlh");
    }

    public Map<String, String> getSettings() {
        return this.settings;
    }

    public void setSettings(Map<String, String> settings) {
        this.settings = settings;
    }

    public String[] getTemplateLoaderPath() {
        return this.templateLoaderPath;
    }

    public boolean isPreferFileSystemAccess() {
        return this.preferFileSystemAccess;
    }

    public void setPreferFileSystemAccess(boolean preferFileSystemAccess) {
        this.preferFileSystemAccess = preferFileSystemAccess;
    }

    public void setTemplateLoaderPath(String... templateLoaderPaths) {
        this.templateLoaderPath = templateLoaderPaths;
    }
}

从源码上可以看出FreeMarker默认的模板文件地址和Thymeleaf一样,都是classpath:/template/,但是模板文件的后缀确实.ftlh;如果开发者想自定义配置可以在application.propertie中配置,配置如下:

#HttpServletRequest的属性是否可以考虑覆盖controller中model的同名项
spring.freemarker.allow-request-override=false
#HttpSession的属性是否可以覆盖controller中model的同名项
spring.freemarker.allow-session-override=false
#是否开启缓存
spring.freemarker.cache=false

#检验模板位置是否存在,默认为TRUE
spring.freemarker.check-template-location=true
#模板文件编码
spring.freemarker.encoding=UTF-8
#Content-Type 配置
spring.freemarker.servlet.content-type=text/html
#是否将HttpServletRequest中的属性添加到model中
spring.freemarker.expose-request-attributes=false
#是否将HttpSession中的属性添加到model中
spring.freemarker.expose-session-attributes=false
#模板文件后缀
spring.freemarker.suffix=.ftl
#模板文件地址
spring.freemarker.template-loader-path=classpath:/templates/

(3)配置控制器

控制器和thymeleaf一样,这里就不重复写

(4)创建视图

在模块目录下创建books.ftl,内容如下:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<table border="1">
    <tr>
        <th>图书编号</th>
        <th>图书名称</th>
        <th>图书作者</th>
        <th>图书价格</th>
    </tr>
    <#if books ??&& (books?size>0)> //判断集合是否为空
    <#list books as book> //给集合取别名
   <tr>
        <td >${book.id}</td> //集合属性
        <td >${book.name}</td>
        <td >${book.author}</td>
    </tr>
    </#list>
</#if>
</table>

</body>
</html>

(5)运行和thymeleaf一样

2、SpringBoot整合Web开发

2.1、返回JSON数据

(1)默认实现

目前JSON方式是最流行的的前后端数据传输方式,SpringMvc中使用消息转换器HttpMessageConverter对JSON的转换器提供了很好的支持,SpringBoot对相关的配置做了更一步的简化,web依赖,pom.xml如下:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
 </dependency>

这个依赖中默认加入了jackson-databind作为JSON处理器,此时不需要添加格外的JSON处理器,就可以返回一段JSON,创建实体类:

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
@ConfigurationProperties(prefix = "book")
public class Book {
	private Integer id;
	private String name;
	private String author;
	@JsonIgnore
	private Float price;

	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date publicationDate;

//省略 set 、get方法
}

创建Controller,创建类执行方法,返回结果:

import org.sang.model.Book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import java.util.Date;
import java.util.ArrayList;
import java.util.List;

@Controller
public class HelloController {

	@Autowired
	Book book;

	@GetMapping("/book")
	@ResponseBody
	public Book Book(){
		Book book1=new Book();
		book1.setId(1);
		book1.setName("三国演义");
		book1.setAuthor("罗贯中");
		book1.setPrice(12f);
		book1.setPublicationDate(new Date());
		return book1;
	}
}

注意:如果频繁使用@ResponseBody注解,可以采用@RestController组合注解代替@Controller和@ResponseBody

这是SpringBoot自带的处理方式,如果采用这种方式,对于字段忽略、日期格式化等常见问题都可以用注解解决

这就是通过Spring中提供的默认的MappingJackson2HttpMessageConverter来实现的,当然开发者也可以根据需求自定义JSON转换器,常见的JSON处理器除了jackson-databind之外,还有Gson和fastjson

(2)自定义转换器(Gson)

Gson是谷歌的一个开源的JSON解析框架。使用Gson,需要先去除默认的jackson-databind,依赖如下:

<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
          
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-databind</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
<dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.6.2</version>
        </dependency>

由于SpringBoot中默认提供了Gson的自动转换类GsonHttpMessageConvertersConfiguration,所以使用Gson就需要把jackson-databing去掉,如果对日期数据进行格式化,那就需要开发者自定义 HttpMessageConverter

首次看GsonHttpMessageConverterConfiguration源码:

@Bean
@ConditionalOnMessingBean
public GsonHttpMessageConverter gsonHttpMessageConverter(Gson gson){
    GsonHttpMessageConverter converter=new GsonHttpMessageConverter();
    converter.setGson(gson);
    return converter;
}

@ConditionalOnMissingBean 注解表示该项目中没有提供GsonHttpMessageConverter时才会使用默认的GsonHttpMessageConverter,所以开发者只需要提供一个GsonHttpMessageConverter即可,代码如下:

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.GsonHttpMessageConverter;

import java.lang.reflect.Modifier;

@Configuration
public class GsonConfig {
	
	@Bean
	GsonHttpMessageConverter gsonHttpMessageConverter(){
		GsonHttpMessageConverter converter=new GsonHttpMessageConverter();
		GsonBuilder builder=new GsonBuilder();
		builder.setDateFormat("yyyy-MM-dd");
		builder.excludeFieldsWithModifiers(Modifier.PROTECTED);
		Gson gson=builder.create();
		converter.setGson(gson);
		return converter
	}
}

结果:

(3)自定义转换器(fastjson)

fastjson是阿里巴巴中的一个开源JSON解析框架,是目前JSON解析速度最快的开源框架,该框架也可以集成到SpringBoot中,不同于Gson、fastjson继承完成之后并不能马上使用,需要开发者提供相应的HttpMessageConverter后才能使用,集成fastjson步骤如下:

除去jackson-databind依赖,引入fastjson依赖:

 <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
          
            <exclusions>
                <exclusion>
                    <groupId>com.fasterxml.jackson.core</groupId>
                    <artifactId>jackson-databind</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>com.alibaba</groupId>
            <artifactId>gson</artifactId>
            <version>2.6.2</version>
        </dependency>

然后配置fastjson的HttpMessageConverter

import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.json.GsonHttpMessageConverter;

import java.lang.reflect.Modifier;
import java.nio.charset.Charset;

@Configuration
public class GsonConfig {
	@Bean
	FastJsonHttpMessageConverter fastJsonHttpMessageConverter(){
		FastJsonHttpMessageConverter converter=new FastJsonHttpMessageConverter();
		FastJsonConfig fastJsonConfig=new FastJsonConfig();
		fastJsonConfig.setDateFormat("yyyy-MM-dd"); //配置日期格式
		fastJsonConfig.setCharset(Charset.forName("UTF-8")); //数据格式
		fastJsonConfig.setSerializerFeatures(
				SerializerFeature.WriteClassName, //是否在生成的JSon中输出类名
				SerializerFeature.WriteMapNullValue, //是否输出value为null的数据
				SerializerFeature.PrettyFormat, //生成的JSON格式化
				SerializerFeature.WriteNullListAsEmpty, //空集合输出,而非null
				SerializerFeature.WriteNullStringAsEmpty //空字符串“”而为null
		);
		converter.setFastJsonConfig(fastJsonConfig);
		return converter;
	}
}

除了GsonConfig配置的,还需要配置一下响应编码,否则返回的JSON中文会乱码,需要在application.properties添加如下配置:

spring.http.encoding.force-response=true

结果:

对于FastJsonHttpMessageConverter的配置,除了上面的方式,下面还有一种方式:

项目还是需要引入spring-boot-starter-web依赖,还需要引入spring-boot-autoconfigure,在这个自动化配置中,有一个WebMvcAutoConfiguration类提供了对SpringMVC最基础的配置,如果自动化配置不满开发需求,开发者可以自定义配置,只需要实现WebMvcConfigurer接口即可在(在Spring5之前通过继承WebMvcConfigurerAdapter类实现的),源码如下:

import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import java.nio.charset.Charset;
import java.util.List;

@Configuration
public class MyWebMvcConfig implements WebMvcConfigurer {

	public void configureMessageConverter(List<HttpMessageConverter<?> > converters){
		FastJsonHttpMessageConverter converter=new FastJsonHttpMessageConverter();
		FastJsonConfig config=new FastJsonConfig();
		config.setDateFormat("yyyy-MM-dd");
		config.setCharset(Charset.forName("UTF-8"));
		config.setSerializerFeatures(
				SerializerFeature.WriteClassName,
				SerializerFeature.WriteMapNullValue,
				SerializerFeature.PrettyFormat,
				SerializerFeature.WriteNullListAsEmpty,
				SerializerFeature.WriteNullStringAsEmpty
		);
		converter.setFastJsonConfig(config);
		converters.add(converter);
	}
}

代码解析:

自定义MyWebMvcConfig 类并实现WebMvcConfigurer接口中的configureMessageConverters方法

将自定义FastJsonHttpMessageConverter加入converters中

 注意:

Gson也采用这种方式,但不推荐。因为当项目中没有GsonHttpMessageConverter时,SpringBoot自己提供一个GsonHttpMessageConverter,此时重写configureMessageConverters方法,参数converters中已经有GsonHttpMessageConverter的实例了,需要替换已有的GsonHttpMessageConverter实例,操作比较麻烦,所以对于Gson,推荐直接提供GsonHttpMessageConverter

2.2、静态资源访问

对于静态资源访问,SpringBoot提供了自动化配置,可以简化静态资源过滤配置

(1)默认策略

SpringBoot对于SpringMVC的自动化配置都在WebMvcAutoConfiguration类中,因此对于默认的静态资源过滤策略可以从这个类中一探究竟

在WebMVCAutoConfiguration类中有个静态内部类WebMvcAutoConfigurationAdapter,实现了WebMvcConfigurer接口。WebMvcConfigurer接口中有个方法addResourceHandlers,是用来配置静态资源过滤的。方法在WebMvcAutoConfigurationAdapter类中得到了实现,部分代码如下:

 public void addResourceHandlers(ResourceHandlerRegistry registry) {
            if (!this.resourceProperties.isAddMappings()) {
                logger.debug("Default resource handling disabled");
            } else {
                Duration cachePeriod = this.resourceProperties.getCache().getPeriod();
                CacheControl cacheControl = this.resourceProperties.getCache().getCachecontrol().toHttpCacheControl();
                if (!registry.hasMappingForPattern("/webjars/**")) {
                    this.customizeResourceHandlerRegistration(registry.addResourceHandler(new String[]{"/webjars/**"}).addResourceLocations(new String[]{"classpath:/META-INF/resources/webjars/"}).setCachePeriod(this.getSeconds(cachePeriod)).setCacheControl(cacheControl));
                }

                String staticPathPattern = this.mvcProperties.getStaticPathPattern();
                if (!registry.hasMappingForPattern(staticPathPattern)) {
                    this.customizeResourceHandlerRegistration(registry.addResourceHandler(new String[]{staticPathPattern}).addResourceLocations(WebMvcAutoConfiguration.getResourceLocations(this.resourceProperties.getStaticLocations())).setCachePeriod(this.getSeconds(cachePeriod)).setCacheControl(cacheControl));
                }

            }
        }

SpringBoot在这里进行了默认的静态资源的过滤配置,其中staticPathPattern默认定义在WebMvcProperties中,内容如下:

private String staticPathPattern="/**"

 this.resourceProperties.getStaticLocations():获取默认静态资源地址定义在ResourceProperties中

 private static final String[] CLASSPATH_RESOURCE_LOCATIONS = new String[]{"classpath:/META-INF/resources/", "classpath:/resources/", "classpath:/static/", "classpath:/public/"};
    

在getResourceLocations方法中,对于4个静态资源地址做了扩充:

static String[] getResourceLocations(String[] staticLocations){
    String[] locations=new String[staticLocations.length+SERVLET_LOCATIONS.length];
    System.arraycopy(staticLocations,0,locations,0,staticLocations.length);
    System.arraycody(SERVLET_LOCATIONS,0,locations,staticLocations.length,
    SERVLET_LOCATIONS.length);
    return locations;
}

其中,SERVLET_LOCATIONS定义就是{"/"}

综上而已:SpringBoot默认过滤所有的静态资源,一般静态资源地址分为:"classpath:/META-INF/resources/","classpath:/resources/","classpath:/static/","classpath:/public/"、"/",优先级依次降低

(2)自定义策略

1、在配置文件(application.properties)中配置(过滤规则:/static/**   静态资源地址:classpath:/static/)

spring.mvc.static-path-pattern=/static/**
spring.resources.static-locations=classpath:/static/

2、java编码定义:

import com.alibaba.fastjson.serializer.SerializerFeature;
import com.alibaba.fastjson.support.config.FastJsonConfig;
import com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

import java.nio.charset.Charset;
import java.util.List;

@Configuration
public class MyWebMvcConfig implements WebMvcConfigurer {
	
	@Override
	public void addResourceHandlers(ResourceHandlerRegistry registration){
		registration.addResourceHandler("/static/**")
				.addResourceLocations("classpath:/static/");
	}
}

 

springboot+vue3 搭建知识管理系统.zip Vue3,springboot,element-ui使用技巧,实战应用开发小系统参考资料,源码参考。 Vue3,springboot,element-ui使用技巧,实战应用开发小系统参考资料,源码参考。 Vue3,springboot,element-ui使用技巧,实战应用开发小系统参考资料,源码参考。 立即下载

相关推荐

51单片机STC8G1K08驱动ws2812记录

使用51单片机控制17个2812灯,这里选择STC8芯片,最大频率可以达到35M,参考网上的各种文章案例,使用定时器做的时候实测做不到规格书要求的245-345ns,STC8G1K08不带PWM,所以只能使用nop来做,好在单片机在这里只有做编程灯的功能,省略测试过程,下面是程序,使用的是24MHz内部晶振 //设置一个灯珠 void SendOnePix(unsigned char *ptr) { unsigned char i,j; unsigned char temp; fo...

的博客 7328

Vue3.0+TS+Element-plus实现(若依版后台管理系统)

附上源码地址: Vue3.0+TS+Element-plus 后台管理系统模板 准备工作 安装vue3.0,npm create vue3-project 选中这几项即可,不需要vuex, 我们自己封装状态管理。 setup函数使用 在.vue文件中, script 标签下代码都必须带有lang=“ts”。关于setup函数调用时间是在vue2的create之前触发,其他的生命周期相信大家都有所了解,这里就不做赘述了。setup有两种写法 , 常规写法 <script lang="ts"> i

web13595883101的博客 2556

中兴FTTR光猫变简易OLT:低成本搭建全光监控与局域网实战指南

本文详细介绍了如何将中兴FTTR光猫改造为简易OLT设备,实现低成本全光监控与局域网扩展。通过LOID认证、桥接模式设置及终端数破解,用户可利用二手设备搭建高性能光纤网络,适用于远程监控和长距离组网场景,显著降低部署成本。

chair的专栏 2096

flowable表梳理

1. 表梳理(参考Flowable用户手册) 1)通用数据表(2个) act_ge_bytearray:二进制数据表,如流程定义、流程模板、流程图的字节流文件; act_ge_property:属性数据表(不常用); 2)历史表(8个,HistoryService接口操作的表) act_hi_actinst:历史节点表,存放流程实例运转的各个节点信息(包含开始、结束等非任务节点); ...

weixin_30407613的博客 2649

疾病负担研究(GBD)介绍

今天我们来聊一聊第一个公共数据库——GBD数据库,全称叫做global burden of disease(全球疾病负担),该数据库每年都会更新,目前已经更新到GBD2019。 这里直接给大家贴出网址:Global Burden of Disease Study 2019 (GBD 2019) Data Resources | GHDx 上图中红色圈圈标识的就是数据库的数据获取界面的链接,大家直接点击即可. 数据的检索十分方便: Context下拉菜单中可以选择不同的选项,默认是caus

weixin_44240228的博客 1万+

C语言|深入浅出讲解int转换为float全过程(附2017年统考大题案例)

int转换为float类型为什么会发生精度损失? 精度损失的详细过程究竟是什么样的? 什么样情况float会发生精度损失?没有弄懂2017年浮点数统考大题? 这一篇用2017年统考大题案例帮你更深的理解浮点数的存储规则。

DADONGOOO的博客 1万+

springboot+mybatis+vue3.0+ts+elementUIplus学生管理系统

基于springboot+vue3学生管理系统

weixin_42280470的博客 1321

遥感图像地物覆盖分类,数据集制作-分类模型对比-分类保姆级教程

1.新建shp文件地理坐标系保持和影像一致,面类型2.打开属性表3.添加字段这里分类6类,点击添加值添加添加完毕开始人工选地物类型,制作数据集开始标注,标注的时候可以借助谷歌地图来看标记足够多的样本打开面转栅格工具设置nodata值为15。

热爱分享,热爱记录 2534

vue3+elementplus+ts+vite+router4+springboot版CRM客户关系管理系统

一 项目介绍 CRM客户关系管理系统是基于VUE3+elementplus+vite+ts开发的前后端分离的项目,从系统登录,后台首页,客户维护,销售维护,报表管理,员工管理,系统管理等等功能 含有客户关系系统和权限系统。 二 项目开发技术和工具 前端:vue3 elementplus vite ts vuex router4 echart 等技术点 后端:springboot mybatis springmvc spring springsecurity jwt 等技术点 数据库: 关系型数据库m

coder1998的博客 2173

JVM高频面试基本问题与知识点整理:40道高频题的答案、原理、JDK 8与17实测与版本差异解析

本文整理JVM后端面试中最常见的40道问答,覆盖运行时数据区与内存模型、对象分配与布局、垃圾判定与引用、回收算法与回收器、类加载与双亲委派、锁升级、调优监控与排障、JIT与版本演进八个知识块,逐题审校并改写不准确的流传答案。关键结论均在JDK 8与JDK 17上实测:一个int计数循环让System.gc()等待安全点1.17秒,JDK 17的G1只需几毫秒;逃逸分析让10亿次对象分配从22888MB降到0;局部变量仍引用对象时只断开字段引用并不能回收,并标注JDK 8到25的关键版本差异。

曾经“等你生日那天”都遥远得像未来,如今却可欢愉的挥手说“下个十年见” 87万+

GEE:耦合5个因子的kRSEI遥感生态指数(K Remote Sensing Ecological Index, KRSEI)计算

本文将介绍在 Google Earth Engine (GEE)平台上,如何耦合5个因子,进行 kRSEI 的计算。具体来说,分别计算了 `NDVI, WET, NDBSI,LST,NDRI` 5个因子,并使用 PCA 主成分分析方法计算了权重,最后,计算了 kRSEI 指数。

养乐多的博客 1425

vue3+springboot美容院会员信息管理系统

在Java的开发过程中,可以使用HTML、CSS、JavaScript等前端技术来实现系统的用户界面设计和交互功能。XXX同学在对课题进行分析之后,对课题的研究目标有一定的理解,对研究的背景、意义认识较清晰。对系统所用的技术、语言选用恰当,初步设计的功能模块基本合理,拟定的技术路线可行。由于本项目属于信息反馈类型的应用,反馈信息的准确和时效就显得尤为重要。虽然反馈信息的准确性和时效性很大程度上取决于信息的反馈者,但是作为开发者,可以在信息反馈功能被使用时,添加反馈信息的限制条件来保证内容的准确性和时效性。

QQ402205496的博客 1041

基于MATLAB/Simulink平台进行新能源微电网运行控制的建模与仿真

新能源微电网是现代电力系统的重要组成部分,能够有效整合分布式能源(如光伏、风力发电)和储能设备,实现局部区域内的能源高效利用。微电网的运行控制涉及多源能量管理、负荷平衡以及并网/孤岛模式切换等关键问题。基于MATLAB/Simulink平台进行新能源微电网运行控制的建模与仿真,可以帮助研究者验证控制策略的有效性,并优化系统的动态性能和经济性。本项目旨在构建一个完整的新能源微电网模型,包括电源模块、储能模块、负荷模块以及控制器模块,并通过仿真分析其运行特性。

xiaoheshang_123的博客 427

基于SpringBoot + Vue3的科研信息管理系统

Jdk17、Maven3.9.8、 MySQL5.7以上、Navicat、IDEA、Vs Code/webstorm、Node.js18。包括科研人员、科研项目、科研成果和学术活动的统计,以及最新公告和通知的展示。后端技术:Java、Spring Boot、 Spring、 MyBatis Plus。4、本项目经本人调试没问题后才上架的,请不要拿代码有问题来退款退货喔,介意者慎拍。前端技术:Vue3、Element Plus、css3、 TypeScript。3. **科研项目**6. **经费管理**

独孤欢颜的博客 251

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

visio安装包

Microsoft Office Visio 是一款专业的制图软件。利用经过更新的形状、协作工具和数据链接图表,创建专业级图表以简化复杂的信息。

springboot+vue3 医院医疗挂号信息管理系统

本系统采用MVVM模式,开发框架使用SpringBoot框架,开发工具使用IDEA ,Visual Studio Code,Web服务器使用Tomcat,数据库服务器使用MySQL,系统架构采用B/S架构。MVVM模式将使代码更加清晰和可维护。前端:vue3开发工具:IDEA 或者eclipse都支持编程语言: java框架:springboot/ssm都支持jdk版本:jdk1.8以上均可数据库: mysql 版本不限数据库工具:Navicat/SQLyog都可以。

QQ188083800的博客 731

计算机控制技术及应用

《计算机控制技术及应用》通过总结作者的科研成果和吸收国内外的先进理论、方法和技术,以计算机控制系统的网络化、开放化、智能化和集成化发展趋势为主线索,主要介绍计算机控制系统的基本概念和计算机控制系统的典型形式,计算机控制系统的数学描述与基本分析方法,以及数字PID控制器、最少拍控制系统、达林算法、状态变量设计法等设计方法及其各种改进算法。重点突出计算机控制系统输入输出通道接口的设计方法和典型控制系统的设计案例与实现方法等。

计算机毕业设计Springboot基于+Vue3的毕业生信息管理系统 基于Spring Boot与Vue 3的高校毕业生信息管理平台设计与实现 利用Spring Boot和Vue 3构建毕业生信息

计算机毕业设计Springboot基于+Vue3的毕业生信息管理系统zd98mg87 (配套有源码 程序 mysql数据库 论文)本套源码可以先看具体功能演示视频领取,文末有联xi 可分享随着信息技术的飞速发展,教育领域的数字化转型成为必然趋势。毕业生信息管理作为高校和企业之间的重要桥梁,其高效性和准确性直接影响到学生的职业发展和企业的招聘效率。传统的手工管理方式不仅耗时费力,还容易出现错误,难以满足现代教育和就业市场的需求。因此,开发一个基于现代技术框架的毕业生信息管理系统显得尤为迫切。

小许程序设计 902

springboot+vue3校友信息管理系统

校友信息管理系统前端采用的Vue3框架,后端采用java语言,sprinboot框架,mybatis操作数据源,使用软件:idea,eclipse、MySQL。完成了用户登录管理等模块的设计与实现。完成了系统数据库的设计,并基于MySQL数据库管理系统,建立了名称为javaweb的数据库。前后端分离Vue3+SpringBoot开发工具:IDEA 或者eclipse都支持编程语言: java框架:springboot/ssm都支持jdk版本:jdk1.8以上均可。

豆包程序员 916

springboot+vue3高校学生就业信息管理系统

通过本系统的开发,对Java Web技术、SpringBoot框架以及数据库理论有了更加深入的理解。项目的设计和实现过程中,不仅学习到了如何使用IntelliJ IDEA这一集成开发环境进行编码,还深入理解了MySQL数据库的应用,这对于提高数据库设计和操作的能力具有重要意义[5]。JDK版本:JDK1.8数据库:mysql (版本不限)数据库工具:Navicat开发语言:Java 框架支持:springboot/ssm/springcloud 微服务分布式。

QQ402205496的博客 669

springboot+vue3温馨小区停车场车辆信息管理系统

温馨小区停车场车辆信息管理系统前端采用的Vue3框架,后端采用java语言,sprinboot框架,mybatis操作数据源,使用软件:idea,eclipse、MySQL。完成了用户登录管理等模块的设计与实现。完成了系统数据库的设计,并基于MySQL数据库管理系统,建立了名称为javaweb的数据库。前后端分离Vue3+SpringBoot开发工具:IDEA 或者eclipse都支持编程语言: java框架:springboot/ssm都支持jdk版本:jdk1.8以上均可。

QQ_188083800的博客 611

史上功能最全springboot+vue3学生信息管理系统(图文介绍)

1)用户管理,包括用户登录、注册、信息维护、创建、修改、查询、删除。2)学员管理:包括学院信息维护、院系新增、院系修改、院系查询、院系删减。。3)专业管理:包括专业新增、专业修改、专业删除、专业查询。4)学生信息管理:包括学生信息录入、信息修改、信息删除、信息查询。5)业务信息管理:包括奖学金管理、贫困生认定、勤工岗位管理、就业信息管理、党员管理。6)信息反馈:包括反馈提交、反馈查询、反馈修改、反馈删除、回复反馈。7)角色管理,包括角色创建、修改、删除、查询、授权、授权修改。

A18937260063的博客 395

Java SpringBoot+Vue3+MyBatis Spring Boot和美容店信息管理系统系统源码|前后端分离+MySQL数据库

开源免费分享Java SpringBoot+Vue3+MyBatis Spring Boot和美容店信息管理系统系统源码|前后端分离+MySQL数据库可提供说明文档 可以通过*AIGC**技术包括:MySQL、VueJS、ElementUI、(Python或者Java或者.NET)等等*功能如图所示。可以滴我获取详细的视频介绍

caooooooca的博客 351

【原创】SpringBoot3+Vue3学生信息管理系统

基于SpringBoot3+Vue3前后端分离的学生信息管理系统,系统包含管理员、学生角色,功能如下: 管理员:学院管理;学生管理;公告管理;个人信息;密码修改;用户:公告查看;个人信息修改;密码修改。系统界面美观大方,使用了SpringBoot3、Vue3、Element-Plus等技术栈。

全栈软件开发,分享Java、Python、Php、前后端、数据库经验和实战 334

Java Web Spring Boot和美容店信息管理系统系统源码-SpringBoot2+Vue3+MyBatis-Plus+MySQL8.0【含文档】

开源免费分享Java Web Spring Boot和美容店信息管理系统系统源码-SpringBoot2+Vue3+MyBatis-Plus+MySQL8.0【含文档】可提供说明文档 可以通过*AIGC**技术包括:MySQL、VueJS、ElementUI、(Python或者Java或者.NET)等等*功能如图所示。可以滴我获取详细的视频介绍

2301_80924964的博客 378

Java SpringBoot+Vue3+MyBatis spring boot疫情信息管理系统系统源码|前后端分离+MySQL数据库

开源免费分享Java SpringBoot+Vue3+MyBatis spring boot疫情信息管理系统系统源码|前后端分离+MySQL数据库可提供说明文档 可以通过*AIGC**技术包括:MySQL、VueJS、ElementUI、(Python或者Java或者.NET)等等*功能如图所示。可以滴我获取详细的视频介绍

rxy1176073894的博客 232

springboot3基于Vue3的保护野生动物信息管理系统

本毕业设计项目系统前端采用的Vue3框架,后端采用java语言,sprinboot框架,mybatis操作数据源,使用软件:idea,eclipse、MySQL。完成了用户登录管理等模块的设计与实现。完成了系统数据库的设计,并基于MySQL数据库管理系统,建立了名称为javaweb的数据库。前后端分离Vue3+SpringBoot开发工具:IDEA 或者eclipse都支持编程语言: java框架:springboot/ssm都支持jdk版本:jdk1.8以上均可。

bishe288的博客 970

springboot+vue3基于Java的郑州市著名旅游景点信息管理系统

州市著名旅游景点信息管理系统前端采用的Vue3框架,后端采用java语言,sprinboot框架,mybatis操作数据源,使用软件:idea,eclipse、MySQL。完成了用户登录管理等模块的设计与实现。完成了系统数据库的设计,并基于MySQL数据库管理系统,建立了名称为javaweb的数据库。前后端分离Vue3+SpringBoot开发工具:IDEA 或者eclipse都支持编程语言: java框架:springboot/ssm都支持jdk版本:jdk1.8以上均可。

QQ242219979的博客 913
上一篇: SpringBoot+vue信息管理系统(2)
下一篇: SpringBoot+vue信息管理系统(4)
代码的更新者
博客等级 码龄10年 11粉丝 85原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址