成都创新互联网站制作重庆分公司

springboot怎么用webjars集成jquery,bootstrap,layui

这篇文章主要介绍了springboot怎么用webjars集成jquery,bootstrap,layui,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。

“只有客户发展了,才有我们的生存与发展!”这是成都创新互联的服务宗旨!把网站当作互联网产品,产品思维更注重全局思维、需求分析和迭代思维,在网站建设中就是为了建设一个不仅审美在线,而且实用性极高的网站。创新互联对网站建设、网站设计、网站制作、网站开发、网页设计、网站优化、网络推广、探索永无止境。

仓库中搜索坐标:https://mvnrepository.com/ springboot怎么用webjars集成jquery,bootstrap,layui springboot怎么用webjars集成jquery,bootstrap,layui

必须要放:webjars-locator这个依赖来加载后面引入的jquery等库

 
        
            org.webjars
            webjars-locator
            0.40
        
        
        
            org.webjars.bower
            jquery
            3.6.0
        
        
        
            org.webjars
            bootstrap
            5.0.0
        
        
        
            org.webjars
            layui
            2.5.7
        



    
    
    
    

    
    


    
    



 名称(jquery):
            
            
 layui时间:
            
              bootstrap 分页效果:
            
                
                    Previous
                    1
                    2
                    3
                    Next
                
            
 
package com.example.springboot_jxc_0511.jxc.controller;


import com.example.springboot_jxc_0511.jxc.entity.Product;
import com.example.springboot_jxc_0511.jxc.service.IProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 

 *  前端控制器  * 

 *  * @author gongxl  * @since 2021-05-11  */ @Controller @RequestMapping("/product") public class ProductController {     @Autowired     private IProductService iProductService;     @RequestMapping("getProductList")     @ResponseBody     public List getProductList(){         //视图名         List productList = iProductService.list();         return productList;     } }

感谢你能够认真阅读完这篇文章,希望小编分享的“springboot怎么用webjars集成jquery,bootstrap,layui”这篇文章对大家有帮助,同时也希望大家多多支持创新互联,关注创新互联行业资讯频道,更多相关知识等着你来学习!


文章题目:springboot怎么用webjars集成jquery,bootstrap,layui
URL分享:http://cxhlcq.com/article/jhesgo.html

其他资讯

在线咨询

微信咨询

电话咨询

028-86922220(工作日)

18980820575(7×24)

提交需求

返回顶部