- 博客(11)
- 收藏
- 关注
原创 通过thymeleaf来初始化select标签的显示与选中项
通过从数据库获取select的value值,在每个标签上进行判断,值相等的就会显示出来 <select> <option th:selected="${user.getGrade()==1}" value="1" >普通</option> <option th:selected="${user.getGrade()==2}" value="2" >咸鱼</option>
2021-02-27 17:36:19
570
转载 Gradle下载jar包速度解决方法
Gradle下载jar包速度解决方法一、修改项目根目录下的文件 build.gradle :repositories { mavenCentral()}修改为//阿里的allprojects { repositories { maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} }}//开源中国repositories { maven{ url 'ht
2021-02-18 17:29:57
559
原创 Hibernate的generator属性的意义
转载自https://www.cnblogs.com/talo/articles/1663978.html本文讲述Hibernate的generator属性的意义。Generator属性有7种class,本文简略描述了这7种class的意义和用法。Hibernate的Generator属性有7种class,本文简略描述了这7种class的意义和用法。1、identity:用于MySql数据库。特点:递增< id name="id" column="id"> < gen
2021-02-09 16:21:34
285
原创 Unity学习笔记/*打包场景与加载场景AssetBundle接口*/
打包场景using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;/*打包场景*/public class Build{ [MenuItem("Publish/Build Bundle")]//菜单声明,Publish为菜单名,Build Bu...
2020-04-19 18:12:20
204
原创 Unity学习笔记/*加载bundle包AssetBundle接口*/
using System.Collections;using System.Collections.Generic;using UnityEngine;/*加载bundle包*/public class F: MonoBehaviour{ // Start is called before the first frame update void Start() ...
2020-04-19 16:39:02
235
原创 Unity学习笔记/*打包程序Assetbundle接口*/
using System.Collections;using System.Collections.Generic;using UnityEngine;using UnityEditor;/*打包程序*/public class Build{ [MenuItem("Publish/Build Bundle")]//菜单声明,Publish为菜单名,Build Bundle为...
2020-04-19 15:08:19
321
原创 Unity学习笔记/*文件加载卸载操作Resources接口*/
using System.Collections;using System.Collections.Generic;using UnityEngine;using System;public class N : MonoBehaviour{ // Start is called before the first frame update void Start() ...
2020-04-19 14:06:53
204
原创 Unity学习笔记/*编辑器文件操作AssetDateBase接口**/
//头文件导入#if UNITY_EDITORusing UnityEditor;#endif/*分割线,以下是操作方法*/#if UNITY_EDITOR //load Material mat = AssetDatabase.LoadAssetAtPath("Assets/Materials/m1.mat", typeof(Ma...
2020-04-19 12:38:47
183
原创 Unity学习笔记/*获取鼠标单击位置并自动寻路*/
在这里插入代码片@TOCif (Input.GetMouseButtonDown(1)) //1表示鼠标右键{Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);//获去摄像机与该点对应射线RaycastHit hit;//定义一个可以储存射线相关信息的结构体hitVector3 point = Vector3.zer...
2020-04-19 12:34:06
283
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人