摘要:
<EditSpecial :panelShow.sync="panelShow" @hidePanel=hidePanel></EditSpecial> <template> <div v-show="panelShow"> <el-dialog title="专题编辑" :visible.sync="isShow" :before-close="hidePanel"> <el-button @c 阅读全文
摘要:
user-service: ribbon: NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule 阅读全文
摘要:
1.创建application-server1.yml application-server2.yml 在program arguments 中指定 2.在program arguments 中直接修改要指定的参数 阅读全文
摘要:
@Configuration public class RedisConfig { @Autowired private RedisConnectionFactory redisConnectionFactory; @Bean public RedisTemplate redisTemplate(){ RedisTemplate redisTemp... 阅读全文
摘要:
application.yml pom.xml log4jdbc.log4j2.properties logback.xml 阅读全文
摘要:
Weekend weekend = new Weekend(Emp.class); weekend.weekendCriteria().andEqualTo(Emp::getId, 1002); List emps = empMapper.selectByExample(weekend); 阅读全文
摘要:
1.删除 vue-cli2.x npm uninstall vue-cli -g 2.安装 vue-cli3 npm install -g @vue/cli 3.vue -V 4.vue ui 5.快速原型开发 npm install -g @vue/cli-service-global 6. 阅读全文
摘要:
1.cnpm i mysql -S 2.创建 mysql.js 3.node mysql.js 阅读全文
摘要:
1.npm install express-generator -g,全局安装到 C:\Users\Cole\AppData\Roaming\npm\node_modules 2.express -h 查看 3.express myapp (myapp目录名) 4.cd myapp cnpm i 5 阅读全文
摘要:
display: -webkit-box; overflow: hidden; white-space: normal; text-overflow: ellipsis; word-wrap: break-word; -webkit-line-clamp:2; -webkit-box-orient: vertical; 阅读全文
摘要:
import java.util.ArrayList; import java.util.concurrent.locks.Condition; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock; public class Main { public stati... 阅读全文
摘要:
<insert id="insert" parameterType="com.test.pojo.po.User" useGeneratedKeys="true" keyProperty="id"> 添加 useGeneratedKeys="true" keyProperty="id"mysql s 阅读全文
摘要:
$('#id').window("resize",{top:$(document).scrollTop() + ($(window).height()-260) * 0.5});//居中显示 260窗体高度 阅读全文
摘要:
generator.properties generatorConfig.xml 阅读全文
摘要:
lazyLoadTriggerMethods:指定哪个对象的方法触发一次延迟加载。默认值:equals,clone,hashCode,toString 所以,当打印对象时,由于触发了 toString 方法,所以触发了一次懒加载 阅读全文
摘要:
commons-io commons-io 2.6 阅读全文
摘要:
1,添加依赖 2,创建配置文件 rabbitmq-config.properties 3,创建配置文件 application-mq.xml 4,在配置文件applicationContext.xml中引入 5,创建监听 阅读全文
摘要:
1.github下载 https://github.com/facebook/shimmer-android 2.copy ShimmerFrameLayout.java 连同包名到java目录 3.copy attrs.xml 到 values 目录 4. 5. 注:各种style 阅读全文
摘要:
public class FocusTextView extends TextView{ public FocusTextView(Context context) { super(context); } public FocusTextView(Context context, AttributeSet attrs) { super(co... 阅读全文
摘要:
String result = sb.toString(); Type listType = new TypeToken>() {}.getType(); Gson gson = new Gson(); LinkedList list = gson.fromJson(result, listType); 阅读全文
摘要:
android studio: 在相应的module下的build.gradle中加入: android { useLibrary 'org.apache.http.legacy'} 注意放置的位置:是在android {}中 阅读全文
摘要:
1,<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> 2,alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_AL 阅读全文
摘要:
public class BlackNameService extends Service { private SmsReceiver mReceiver; private TelephonyManager mTm; private BlackNamePhoneStateListener mListener; @Override public void ... 阅读全文
摘要:
rownum伪列分页 阅读全文
摘要:
public static String md5Encode(String psd) { try { MessageDigest digest = MessageDigest.getInstance("MD5"); byte[] bytes = digest.digest(psd.getBytes()); ... 阅读全文
摘要:
要同时设置data和type的话只能用函数setDataAndType 阅读全文
摘要:
在 Android Studio 中,对于 VersionName 和 VersionCode 的声明转移到了 Module 的build.gradle文件中。请修改build.gradle 的以下部分 阅读全文
摘要:
阅读全文
摘要:
1,模拟器api22(23是6.0要求权限) 2,androidpn-client.jar 添加jar包 3,res下建立raw文件夹,加入androidpn.properties apiKey=1234567890 xmppHost=123.56.服务器地址 xmppPort=5222 4,权限 阅读全文
摘要:
import com.sun.org.apache.xml.internal.security.utils.Base64; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.spec.IvParameterSpec; impo... 阅读全文
摘要:
import android.graphics.Bitmap; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.util.Log; import android.view.View; import android.widget.Button; import andr... 阅读全文
摘要:
import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.graphics.BitmapFactory; import android.os.Bund... 阅读全文
摘要:
1,先下载vitamo https://www.vitamio.org/Download/ 2,import module vitamio 3,修改build.gradle compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VE 阅读全文
摘要:
import android.Manifest; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.content.pm.PackageManager; import android.os.Bun... 阅读全文
摘要:
import android.Manifest; import android.app.Activity; import android.app.AlertDialog; import android.content.DialogInterface; import android.content.pm.PackageManager; import android.os.Bundle; impor... 阅读全文
摘要:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn1 = (Button) findViewById(R.id.btn1); ... 阅读全文
摘要:
在 Android 4.4 之后,ACTION_MEDIA_MOUNTED 这个广播只能由系统发出,APP 只能监听,不能广播,所以通过发送广播的方式来让系统扫描文件的做法已经是走不通了。 扫描/storage/sdcard/下的所有文件 阅读全文
摘要:
SD卡权限 阅读全文