- 博客(15)
- 收藏
- 关注
原创 搭建springboot整合mybtis的常见错误
一,驱动异常Cannot resolve classpath entry: C:\Users\hi\.m2\repository\mysql\mysql-connector-java\5.1.6\mysql-connector-java-5.1.6.jar -> [Help 1] Exception getting JDBC Driver: com.mysql.jdbc.Driver -&...
2018-05-05 18:58:02
1754
原创 Git安装和相关配置
一、Git 客户端安装1. 安装下载地址https://github.com/git-for-windows/git/releases/download/v2.11.0.windows.1/Git-2.11.0-64-bit.exe 2. 安装步骤2.1 下载完毕之后,双击打开,直接点击Next;2.2 选择安装路径 (默认为C盘,看自己习惯了) 2.3 选择安装组件:也可以直接默认选择。Addi...
2018-05-03 20:02:32
2378
原创 springboot整合alibaba/druid
一,用快速建立建立spring boot项目springboot 版本号为1.5.12和选择相对应的工具(如版本不一致会导致运行错误)pom.xml中添加<!-- https://mvnrepository.com/artifact/com.alibaba/druid --><dependency> <groupId>com.alibaba</gr...
2018-05-02 16:20:15
7821
原创 springboot curd(2)
一,添加页面问题一:如果直接跳转到页面上,无法取得在session域内的值。解决方法:需要跳转到后台页面用方法获取后跳转到指定的添加页面@RequestMapping("/add.do")public String queryDepartmentAll(HttpSession session, Model model) { Object employees = session.getAt...
2018-04-27 20:56:25
767
原创 springboot中的RestfulCRUD(1)
一,配置相关文件1.加入thymeleaf模板,jQuery坐标,bootstrap坐标,nekohtml坐标<!--启用不严格检查html--><dependency> <groupId>net.sourceforge.nekohtml</groupId> <artifactId>nekohtml</artifact...
2018-04-26 19:08:18
355
原创 spring boot Web开发
模板引擎:语法规则:方法使用:1.引入thymeleafSpring Boot默认就是使用thymeleaf模板引擎的,所以只需要在pom.xml加入依赖即可:<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-t...
2018-04-25 19:20:51
173
原创 springBoot续写
一,配置文件值注入(1)@ConfigurationProperties获取值(2)@Value获取值(3)@PropertySource:加载指定的配置文件;(4)@ImportResource:导入Spring的配置文件,让配置文件里面的内容生效;(添加在Application类里面)(5)1、配置类@Configuration------>Spring配置文件 2、使用@Bean给...
2018-04-24 10:12:14
180
原创 简单的SpringBoot和YAML的认识
1、创建一个maven工程;(jar)2、导入spring boot相关的依赖<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring‐boot‐starter‐parent</artifactId> <v...
2018-04-20 17:19:26
530
原创 Spring整合图书管理系统
整合所需的jar包坐标: <dependencies><!--*********************分页的插件包*******************************--> <!-- https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper --> ...
2018-04-14 21:15:35
1386
1
原创 SSM整合续写
1.将数据的日期数据用json转换的方法: JSON.toJSONStringWithDateFormat(jsonObject, "yyyy-MM-dd"); 2.将数据的文字数据用json转换的方法: @RequestMapping(value ="/ajaxQuery.htm",produces={"application/json;","textml;charset=UTF-8;"}) 3...
2018-04-12 20:28:01
110
原创 SSM整合
ssm整合思路:1.搭建maven项目2.pom.xml中 相关jar坐标 2.1 添加读取mybatis xml文件的插件<resources> <resource> <directory>src/main/java</directory> <includes> ...
2018-04-12 09:13:07
156
原创 SpringMVC笔记
常见的注解:@Controller(spring中的注解 代表控制层在 配置文件加载的时候会new Bean)@RequestMapping(配置请求的映射)@RequestParam(用着页面的name属性与方法的参数名不一致指明)@SessionAttributes(将ModelMap中指定的属性放到session中)实例:@Controller@SessionAttributes({"use...
2018-04-10 19:13:27
128
原创 连接数据库的工具类
public class JdbcUtils { private static String driver = "com.mysql.jdbc.Driver"; private static String url = "jdbc:mysql://localhost:3306/test1"; private static String user = "root"; private static St...
2018-02-28 11:54:59
315
原创 jdbc操作数据库的curd
//1,编写程序,在程序中加载数据库驱动 Class.forName("com.mysql.jdbc.Driver") ; //2,建立连接(Connection) String url="jdbc:mysql://localhost:3306/test1"; String user="root"; String password="123456"; Connection conn = ...
2018-02-27 19:32:03
238
原创 数据库的增删改查
增加:ALTER TABLE 表名 ADD 列名 属性;修改Update 表名 set 列名=值,列名=值 where 列名=值 Alter Table students Add ying varchar(10) null Alter Table students Add ying varchar(10) null Alter Table students Add ying varchar(1...
2018-02-27 19:27:33
234
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人