原创 lambda 練習

改造內部類 new Thread(new Runnable() { @Override public void run() { } }).start(); new Thread(() -> System.o

原创 java.lang.NoClassDefFoundError: org/apache/ibatis/cursor/Cursor

做ssm整合的時候遇到的, 坑爹的版本問題導致的。 解決辦法: 將mybatis 和 mybatis-spring 換成如下版本 <dependency> <groupId>org.mybatis</grou

原创 ssm錯誤記載

java.lang.IllegalStateException: Failed to load ApplicationContext 加載ApplicationContext.xml失敗 ,可能是xml中有地方寫錯了,或者拼寫錯了

原创 mybatis spring整合 SqlSessionTemplate類使用

SqlSessionTemplate 通過使用SqlSession接口來完成工作, 所以他也有selectOne等方法。 在applicationContext.xml 中可以通過SqlSessionFactory作爲參數來構建

原创 Error creating bean with name 'xxxx': Injection of autowired dependencies failed;

ssm整合時候出現此錯誤, 具體報錯如下 Error creating bean with name ‘UserInfoService’: Injection of autowired dependencies failed; n

原创 SpringMVC context:include-filter和context:exclude-filter

原文:https://www.cnblogs.com/haoke/p/4604883.html 在Spring MVC中的配置中一般會遇到這兩個標籤,作爲<context:component-scan>的子標籤出現。 但在使用時

原创 springboot 學習(一)搭建

一個請求 添加springboot依賴 <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-pa

原创 shiro jsp標籤

原文地址:https://www.sojson.com/blog/144.html Shiro 提供了 JSP 的一套 JSTL 標籤,用於做 JSP 頁面做權限控制的。可以控制一些按鈕和一些超鏈接,或者一些顯示內容。

原创 mybatis學習 (四) 瞭解映射器的配置

映射器是javaBean和數據庫表溝通的橋樑, 必須掌握它的使用 它的內容如下表 select 這是最簡單的用法了, 根據id來返回一個實體。 <select id="getStudent" parame

原创 Error:remote staging type or host is not specified

idea在tomcat配置中顯示此錯誤, 確保下面選上應該就好了 點贊 收藏 分享 文章舉報 珍惜每分每秒 發佈了684 篇原創文章 · 獲贊 241 · 訪問量

原创 vuex

vuex在項目中維護一個狀態,在項目中的作用是一個唯一的數據源, 相當於全局對象,各個組件共享這一個對象 初始化一個新項目 vue init webpack myvue3 安裝vuex npm install vuex --save

原创 vue 練習項目-答題

功能如下圖,主要是練習下vue-router和vuex的使用。碼雲地址

原创 vue

cli 構建項目 cli是腳手架工具, 可以快速構建一個vue項目。 –安裝 淘寶鏡子, 以後可以用cnpm代替npm npm install -g cnpm --registry=https://registry.npm.taoba

原创 jquery 樣式與動畫

修改css css是對一張網頁起到修飾作用, 通過jquery可以動態的操作css。 測試代碼: <div id="mydiv" style="width: 120px; height: 120px;"> div

原创 四大函數式接口

消費型 消費型,返回值是void,所以不能return Consumer<String> con = (x) -> System.out.println("info"); 提供型 Supplier<Integer> s