Idea上搭建Springboot+mybatis+shiro
一:新建Project,Idea是一款功能很强大的软件,有专门的生成springboot的插件 有时候会遇到timeout连接超时,将Defult默认的路径改为自定义:http://start.spring.io点击next next finish,等待idea自动构建架构 测试: 首先在applicationproperties文件配置 spring.datasource.url = jdbc:mysql://localhost:3306/test spring.datasource.username = root spring.datasource.password = 123456 spring.datasource.driverClassName = com.mysql.jdbc.Driver #页面热加载 spring.thymeleaf.cache = false #端口 server.port=8888 其次在静态文件夹static下创建test.css文件 在templates下创建HTML文件-hello.html 接下来写controller package com.example.demo.controller; import org.springframework.stereotype.Controller; import org