上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页
摘要: Flutter的listview4种构建方式 1.listview - 这种构建方式是把固定数据变成 item 传给 childen Widget build(BuildContext context) { // TODO: implement build return ListView( padd 阅读全文
posted @ 2020-04-25 17:11 DingJie1024 阅读(255) 评论(0) 推荐(0)
摘要: import 'package:flutter/material.dart'; void main()=>runApp(App()); class App extends StatelessWidget{ @override Widget build(BuildContext context) { 阅读全文
posted @ 2020-04-25 15:47 DingJie1024 阅读(261) 评论(0) 推荐(0)
摘要: 一、首先创建一个组件(部件) class Hello extends StatelessWidget{ @override Widget build(BuildContext context) { // TODO: implement build return Center( child: Text 阅读全文
posted @ 2020-04-25 14:37 DingJie1024 阅读(209) 评论(0) 推荐(0)
摘要: import 'package:flutter/material.dart'; void main(){ runApp( Center( child: Text( 'hello', textDirection: TextDirection.ltr ) ) ); } 阅读全文
posted @ 2020-04-25 14:06 DingJie1024 阅读(173) 评论(0) 推荐(0)
摘要: 一、环境准备 IDEA IDE或者Android Studio开发软件(本人使用IDEA) Flutter SDK ,下载地址:https://flutter.dev/docs/development/tools/sdk/releases VS Code代码编辑器 二、设置环境变量 1.下载Flut 阅读全文
posted @ 2020-04-24 20:25 DingJie1024 阅读(201) 评论(0) 推荐(0)
摘要: @Value @ConfigurationProperties 功能 单个指定 @Value("${person.last-n-ame}")private String lastName;@Value("#{11*2}")private Integer age;@Value("true")priva 阅读全文
posted @ 2020-02-01 22:57 DingJie1024 阅读(204) 评论(0) 推荐(0)
摘要: 4.1 SpringBoot配置文件类型和作用 SpringBoot是基于约定的,所以很多配置都有默认值,但如果想使用自己的配置替换默认配置的话,就可以使用 application.properties或者application.yml(application.yaml)进行配置。 SpringBo 阅读全文
posted @ 2020-01-31 22:05 DingJie1024 阅读(338) 评论(0) 推荐(0)
摘要: 3.1 分析spring-boot-starter-parent 按住Ctrl点击pom.xml中的spring-boot-starter-parent,跳转到了spring-boot-starter-parent的pom.xml,xml配 置如下(只摘抄了部分重点配置): <parent> <gr 阅读全文
posted @ 2020-01-31 21:41 DingJie1024 阅读(253) 评论(0) 推荐(0)
摘要: 2.1 SpringBoot代码解析 @SpringBootApplication:标注SpringBoot的启动类,该注解具备多种功能(后面详细剖析) SpringApplication.run(MySpringBootApplication.class) 代表运行SpringBoot的启动类,参 阅读全文
posted @ 2020-01-31 21:23 DingJie1024 阅读(252) 评论(0) 推荐(0)
摘要: 1.1 创建Maven工程 使用idea工具创建一个maven工程,该工程为普通的java工程即可 1.2 添加SpringBoot的起步依赖 SpringBoot要求,项目要继承SpringBoot的起步依赖spring-boot-starter-parent <parent> <groupId> 阅读全文
posted @ 2020-01-31 21:17 DingJie1024 阅读(240) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 下一页