原创 Selenium+java操作瀏覽器cookies

https://www.bbsmax.com/A/l1dyPn2x5e/ 1. 獲取cookies並保存到文件 步驟: ① 打開CSDN的登錄界面; ② 填寫用戶名和密碼; ③ 新建文件txt; ④ 獲取cookies,並將cookies保

原创 javav語言啓動Appium v1.12.0啓動錯誤記錄

啓動類 public static AndroidDriver<AndroidElement> driver; /** * >aapt d badging GJDMALL-V2.2.0.3349-436-debug-

原创 selenium操作web自動化小小封裝體驗

元素判斷封裝 import lombok.extern.log4j.Log4j; import org.openqa.selenium.By; import java.io.File; import java.io.FileInputSt

原创 通過數組獲取唯一指定幾個數據

1、通過數組內容獲取想要數組中幾個唯一數據 @Test public void t74() { String[] arrStr = {"2092314", "2092313", "2078103", "58850

原创 ssm_前端學習筆記

Controller package com.atguigu.crud.controller; import java.util.ArrayList; import java.util.HashMap; import java.util.

原创 java獲得當前文件路徑

第一種: File f = new File(this.getClass().getResource("/").getPath()); System.out.println(f); 結果: C:\Documents%20and%20Sett

原创 Spingboot+thymeleaf+ajax簡單登錄實現

登錄頁面 <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"> <head> <m

原创 springboot2.1.4 與security5用戶認證學習筆記

1、學習這個用了4天終於弄出來2、剛調試成功做個筆記 pom.xml文件 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/

原创 springBoot2.1.4版本里添加thymeleaf-extras-springsecurit

https://blog.csdn.net/wssc63262/article/details/86011939 頁面無法讀取到sec:authorize="isAnonymous()"和sec:authorize="isAuthentic

原创 頁面共享數據的有效範圍

web系統中保存數據與共享數據有四個範圍 1、頁面範圍 2、請求範圍: 3、會話範圍 4、應用範圍   請求範圍比頁面範圍要大,因爲轉發的時候可以跳躍多個頁面。 會話比請求範圍要大,因爲一次會話可以發送多個請求。 應用比會話範圍要大,因

原创 bootstrap 模態框modal 傳值問題

https://blog.csdn.net/wuyan1001/article/details/54633030 html代碼: <table id="datatable" class="table table-bordered tabl

原创 springboot提交表單提示NullPointerException

This application has no explicit mapping for /error, so you are seeing this as a fallback. Wed Apr 24 12:54:08 CST 2019

原创 Mapper多表關聯查詢學習

1、首先寫sql語句 select p.id, p.create_time, p.update_time, p.create_user, p.update_user, p.project_name, p.test_user, p.

原创 Spring Boot 整合Pagehelper(爲什麼PageHelper分頁不生效)

引入包https://mvnrepository.com/artifact/com.github.pagehelper/pagehelper-spring-boot-starter/1.2.10 <!--分頁--> <!--

原创 java判斷字符串不爲空和null的方法

https://blog.csdn.net/Echo_width/article/details/79653704 首先,區分空串和null串 1、 空串""是長度爲0的字符串,它有自己的串長度(0)和內容(空),判斷一個字符串爲空的方法: