python222网站实战(SpringBoot+SpringSecurity+MybatisPlus+thymeleaf+layui)-架构搭建

锋哥原创的Springboot+Layui python222网站实战:

python222网站实战课程视频教程(SpringBoot+Python爬虫实战) ( 火爆连载更新中... )_哔哩哔哩_bilibilipython222网站实战课程视频教程(SpringBoot+Python爬虫实战) ( 火爆连载更新中... )共计23条视频,包括:python222网站实战课程视频教程(SpringBoot+Python爬虫实战) ( 火爆连载更新中... )、第2讲 架构搭建实现、第3讲 页面系统属性动态化设计实现等,UP主更多精彩视频,请关注UP账号。icon-default.png?t=N7T8https://www.bilibili.com/video/BV1yX4y1a7qM/idea新建python222-v2项目,记得要配置maven阿里云镜像。



    4.0.0
    
        org.springframework.boot
        spring-boot-starter-parent
        2.3.2.RELEASE
         
    
    com.python222
    python222
    v1
    python222
    war
    python2222.com官网

    
        1.8
    

    
        
            org.springframework.boot
            spring-boot-starter-thymeleaf
        
        
            org.springframework.boot
            spring-boot-starter-web
        

        
            org.mybatis.spring.boot
            mybatis-spring-boot-starter
            2.1.1
        

        
        
            com.baomidou
            mybatis-plus-boot-starter
            3.5.2
        

        
            org.springframework.boot
            spring-boot-starter-security
        

        
            mysql
            mysql-connector-java
            runtime
        

        
            org.springframework.boot
            spring-boot-devtools
            runtime
            true
        

        
            commons-io
            commons-io
            2.5
        

        
        
            com.alibaba
            druid
            1.1.10
        


        
            com.github.keran213539
            IK_Analyzer
            2012FF_hf1_1
        

        
        
            org.springframework.boot
            spring-boot-devtools
            
            true
        

        
        
            org.springframework.boot
            spring-boot-starter-data-redis
        
        
        
            org.apache.commons
            commons-pool2
        


    


新建数据库db_python222_v2

CREATE TABLE `t_link` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) DEFAULT NULL,
  `url` varchar(50) DEFAULT NULL,
  `sort` int(11) DEFAULT NULL,
  `remark` varchar(100) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8;

/*Data for the table `t_link` */

insert  into `t_link`(`id`,`name`,`url`,`sort`,`remark`) values (1,'Java知识分享网','http://www.java1234.com',1,'xxx'),(2,'java1234博客','http://blog.java1234.com',2,'yyy'),(3,'Java1234课堂','http://www.java1234.vip',3,'zzz');

启动类上加上注解:

@MapperScan(value = "com.python222.mapper")

测试Controller

@Controller
public class TestController {

    @Autowired
    private LinkService linkService;

    @RequestMapping("/test")
    @ResponseBody
    public List test(){
        return linkService.list();
    }
    
}

python222网站实战(SpringBoot+SpringSecurity+MybatisPlus+thymeleaf+layui)-架构搭建_第1张图片

你可能感兴趣的:(java,spring,boot,layui,架构,java,后端)