- 博客(6)
- 收藏
- 关注
原创 jsp页面<select>标签无法显示
<label class="col-xs-1 control-label"><span class="im">*</span>标准来源:</label> <div class="col-xs-3"> <select id="sourceWay" name="sourceWay" class="selectpicker form-control" data-
2022-05-20 14:24:18
724
原创 在本地生成txt文件
在本地生成txt文件string2File("这是一个txt文件", "D:\\123.txt");public static boolean string2File(String res, String filePath) { boolean flag = true; BufferedReader bufferedReader = null; BufferedWriter bufferedWriter = null; try {
2022-04-25 10:59:31
188
原创 前台按钮点击无响应,报Uncaught TypeError: $(...).ajaxSubmit is not a function
@[TOC](Uncaught TypeError: $(…).ajaxSubmit is not a function)点击界面上的提交按钮时,控制台报如下错误js代码如下,没发现问题importSave : function(){ var valid = true; var text = "请"; var uploadFile = Page.$("#file").val(); if(uploadFile==null||uploadFile==""){ valid = fal
2022-02-15 13:59:14
682
原创 项目中加入字典表
创建一个字典项的annotation注解@Target({ElementType.FIELD})@Retention(RetentionPolicy.RUNTIME)public @interface DictsValue { String value() default "";}在需要用上字典项的实体类的属性上加上注解 @DictsValue("color") private String gcolor;字典项的service层,用于处理对象中的字典数字转换为字
2021-01-24 17:31:43
585
原创 vue前台下载后端传入的excel流数据
前台vue内容//下载handleDownload(){ this.$axios.get('sale/excel') const res = axios.request({ url: 'sale/excel', method: 'get', // 以get请求为例 responseType: 'blob'//axios底层对返回数据以流的方式处理 }).then(res=>{ const data = res; let url = window.URL.createO
2021-01-23 20:27:13
356
原创 远程接口调用中 spring的RestTemplate模板类使用
远程接口调用中 spring的RestTemplate模板类使用@Test public void testGet(){ String path="http://api.tianapi.com/txapi/saylove/index?key=db3d22eebbff236d1b3b424ea12c3dd6"; RestTemplate t = new RestTemplate(); String result = t.getForObject(pat
2021-01-12 20:49:29
119
空空如也
bootstraptable嵌入下拉框展示不全
2022-09-01
TA创建的收藏夹 TA关注的收藏夹
TA关注的人