- 博客(24)
- 资源 (9)
- 收藏
- 关注
原创 flutter弹框
showModalBottomSheet:底部弹出弹框。simpleDialog:选择弹框。showtoast:三方插件弹框。alertDialog:弹框。
2024-03-27 18:30:59
382
原创 flutter路由跳转
/路由跳转(模块方式)Navigator.pushNamed(context, "/") //路由跳转(路由方式)Navigator.pop(context)//返回上级路由对象 widget获取/使用路由参数 (widget.id / widget.title) 使用${widget.title}
2024-03-25 17:42:33
727
1
原创 flutter->Scaffold左侧/右侧侧边栏和UserAccountsDrawerHeader的使用
/ return const Text('我是首页数据', style: TextStyle(color: Colors.red));// highlightColor: Colors.purple, //设置高亮的颜色。// icon: Icon(Icons.ac_unit), //设置图标。title: Text('左侧数据'),// color: Colors.red, //设置按钮颜色。// tooltip: '我是提示信息', //提示信息。
2024-03-20 17:29:32
738
1
原创 flutter动态集合
setState(() => _dataList.add({'name': '小刀刀'}))tooltip: '添加数据',//带索引的集合循环。
2024-03-20 17:09:01
365
1
原创 flutter tabbar切换选中,展示对应模块
return const Text('我是购物车数据', style: TextStyle(color: Colors.amber));return const Text('我是设置数据', style: TextStyle(color: Colors.green));return const Text('我是首页数据', style: TextStyle(color: Colors.red));icon: Icon(Icons.card_giftcard), label: "购物车"),
2024-03-20 15:30:54
586
1
原创 win10重新部署应用商店
重新部署应用商店使用管理员打开的 “Windows Powershell(管理员)” 窗口中输入以下命令(慎用):get-appxpackage *store* | remove-Appxpackage再次安装:add-appxpackage -register "C:\Program Files\WindowsApps\*Store*\AppxManifest.xml" -disabledevelopmentmode...
2021-09-22 10:30:33
793
原创 rollup 打包build报错:[!] Error: Unexpected character ‘@‘ (Note that you need plugins to import files th
[!] Error: Unexpected character '@' (Note that you need plugins to import files that are not JavaScript)styles\index.scss (1:0)1: @import './variable.scss';解决方案:PostCSS({ minimize: true, modules: { generateScopedName: ...
2021-09-02 09:53:27
6069
1
原创 控制台解析preview和response数据不一致怎么解决
原因可能是因为数据为Long型,返回给浏览器以后,浏览器转换数据格式的时候出现问题。解决方案:在返回数据之前就将数据转换为字符串,这样结果就是正确的。在返回前台数据类的 long字段上加入@JSONField(serializeUsing= ToStringSerializer.class)...
2018-03-14 16:16:41
9833
1
原创 JS 字符串操作函数 往指定位置插入字符 删除指定位置字符 替换指定位置字符
插入 参数说明:str表示原字符串变量,flg表示要插入的字符串,sn表示要插入的位置function insert_flg(str,flg,sn){ var newstr=""; for(var i=0;i var tmp=str.substring(i, i+sn); newstr+=tmp+flg; } re
2017-10-25 10:57:57
30604
原创 Spring Boot Nginx axios 跨域设置
1、Spring Boot跨域配置在后端使用Spring Boot。Spring Boot跨域非常简单,只需书写以下代码即可。@Configurationpublic class CustomCORSConfiguration { private CorsConfiguration buildConfig() { CorsConfiguration corsConfigu
2017-08-04 10:47:57
3081
转载 springboot跨域
springboot 设置跨域 1. @Component public class CorsFilter implements Filter { final static org.slf4j.Logger logger = org.slf4j.LoggerFactory.getLogger(CorsFilter.clas
2017-07-25 13:02:00
424
原创 maven路径和淘宝镜像
更改maven本地路径 D:\java\maven更改maven下载地址 在 maven的config 文件中加入 (maven淘宝镜像) alimaven aliyun maven http://maven.aliyun.com/nexus/content/groups/publ
2017-07-18 11:35:42
1219
原创 webService测试
public Integer wsText(AmSysServiceWs item) { try { URL urlObj = new URL(item.getServiceUrl()); HttpURLConnection oc = (HttpURLConnection) urlObj.openConnection(); oc.setUse
2017-07-14 16:50:08
293
原创 SpringBoot学习:使用spring-boot-devtools进行热部署
1.添加架包支持热启动jar包-->dependency> groupId>org.springframework.bootgroupId> artifactId>spring-boot-devtoolsartifactId> version>${spring-boot.version}version> optional>trueoptional>
2017-07-03 13:00:19
1619
原创 springboot mybatis 实体类正常 报错找不到
项目使用spring boot 集成mybatis通用mapper插件,发现查询方法selectOne会导致发生异常—— Java.lang.ClassCastException:com.xxx.xxx.entity cannot be cast to com.xxx.xxx.entity增删改都没问题 只有查询报错解决方法如下:创建目录 resource
2017-06-05 15:41:03
6792
原创 vue 路由vue-router
项目结构1.下载路由 cnpn install vue-router -D 2.在app.vue中创建 连接执行 tag 指定显示标签template> ul> router-link tag="li" to="/home" >用户中心router-link> router-link tag="li" to="/role">
2017-04-25 17:48:50
436
原创 shiro AuthorizationInfo doGetAuthorizationInfo 授权调用
1. 在 @Controller 上加入 @RequiresRoles("admin")2.手工调用subject.hasRole(“admin”) 或 subject.isPermitted(“admin”)3.页面标签调用shiro:hasPermission>
2017-04-21 13:49:17
4176
2
vue+element+springboot+shiro权限控制
2017-12-07
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人