摘要:
<EditSpecial :panelShow.sync="panelShow" @hidePanel=hidePanel></EditSpecial> <template> <div v-show="panelShow"> <el-dialog title="专题编辑" :visible.sync="isShow" :before-close="hidePanel"> <el-button @c
阅读全文
posted @ 2019-11-15 10:15
一路向北中
阅读(4670)
推荐(0)
摘要:
user-service: ribbon: NFLoadBalancerRuleClassName: com.netflix.loadbalancer.RandomRule
阅读全文
posted @ 2019-10-15 16:17
一路向北中
阅读(484)
推荐(0)
摘要:
1.创建application-server1.yml application-server2.yml 在program arguments 中指定 2.在program arguments 中直接修改要指定的参数
阅读全文
posted @ 2019-10-15 10:06
一路向北中
阅读(363)
推荐(0)
摘要:
@Configuration public class RedisConfig { @Autowired private RedisConnectionFactory redisConnectionFactory; @Bean public RedisTemplate redisTemplate(){ RedisTemplate redisTemp...
阅读全文
posted @ 2019-10-09 16:49
一路向北中
阅读(302)
推荐(0)
摘要:
application.yml pom.xml log4jdbc.log4j2.properties logback.xml
阅读全文
posted @ 2019-10-09 10:46
一路向北中
阅读(3644)
推荐(0)
摘要:
Weekend weekend = new Weekend(Emp.class); weekend.weekendCriteria().andEqualTo(Emp::getId, 1002); List emps = empMapper.selectByExample(weekend);
阅读全文
posted @ 2019-09-18 16:11
一路向北中
阅读(196)
推荐(0)
摘要:
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.
阅读全文
posted @ 2019-03-11 15:06
一路向北中
阅读(186)
推荐(0)
摘要:
1.cnpm i mysql -S 2.创建 mysql.js 3.node mysql.js
阅读全文
posted @ 2019-03-04 10:42
一路向北中
阅读(197)
推荐(0)
摘要:
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
阅读全文
posted @ 2019-03-02 16:14
一路向北中
阅读(267)
推荐(0)
摘要:
display: -webkit-box; overflow: hidden; white-space: normal; text-overflow: ellipsis; word-wrap: break-word; -webkit-line-clamp:2; -webkit-box-orient: vertical;
阅读全文
posted @ 2019-02-25 11:35
一路向北中
阅读(229)
推荐(0)
摘要:
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...
阅读全文
posted @ 2019-02-18 14:59
一路向北中
阅读(134)
推荐(0)
摘要:
<insert id="insert" parameterType="com.test.pojo.po.User" useGeneratedKeys="true" keyProperty="id"> 添加 useGeneratedKeys="true" keyProperty="id"mysql s
阅读全文
posted @ 2018-07-25 14:28
一路向北中
阅读(210)
推荐(0)
posted @ 2018-06-28 09:26
一路向北中
阅读(470)
推荐(0)
摘要:
$('#id').window("resize",{top:$(document).scrollTop() + ($(window).height()-260) * 0.5});//居中显示 260窗体高度
阅读全文
posted @ 2018-05-03 18:10
一路向北中
阅读(1923)
推荐(0)
摘要:
generator.properties generatorConfig.xml
阅读全文
posted @ 2018-04-06 15:15
一路向北中
阅读(221)
推荐(0)
摘要:
lazyLoadTriggerMethods:指定哪个对象的方法触发一次延迟加载。默认值:equals,clone,hashCode,toString 所以,当打印对象时,由于触发了 toString 方法,所以触发了一次懒加载
阅读全文
posted @ 2018-04-02 16:12
一路向北中
阅读(1147)
推荐(0)
摘要:
commons-io commons-io 2.6
阅读全文
posted @ 2018-03-08 10:44
一路向北中
阅读(329)
推荐(0)
摘要:
1,添加依赖 2,创建配置文件 rabbitmq-config.properties 3,创建配置文件 application-mq.xml 4,在配置文件applicationContext.xml中引入 5,创建监听
阅读全文
posted @ 2017-10-21 16:18
一路向北中
阅读(173)
推荐(0)
摘要:
1.github下载 https://github.com/facebook/shimmer-android 2.copy ShimmerFrameLayout.java 连同包名到java目录 3.copy attrs.xml 到 values 目录 4. 5. 注:各种style
阅读全文
posted @ 2017-03-22 14:58
一路向北中
阅读(1654)
推荐(0)
摘要:
public class FocusTextView extends TextView{ public FocusTextView(Context context) { super(context); } public FocusTextView(Context context, AttributeSet attrs) { super(co...
阅读全文
posted @ 2017-03-22 10:22
一路向北中
阅读(534)
推荐(0)
摘要:
String result = sb.toString(); Type listType = new TypeToken>() {}.getType(); Gson gson = new Gson(); LinkedList list = gson.fromJson(result, listType);
阅读全文
posted @ 2017-01-04 11:12
一路向北中
阅读(1113)
推荐(0)
摘要:
android studio: 在相应的module下的build.gradle中加入: android { useLibrary 'org.apache.http.legacy'} 注意放置的位置:是在android {}中
阅读全文
posted @ 2017-01-02 16:08
一路向北中
阅读(1199)
推荐(0)
摘要:
1,<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/> 2,alertDialog.getWindow().setType(WindowManager.LayoutParams.TYPE_SYSTEM_AL
阅读全文
posted @ 2016-12-31 10:35
一路向北中
阅读(665)
推荐(0)
摘要:
public class BlackNameService extends Service { private SmsReceiver mReceiver; private TelephonyManager mTm; private BlackNamePhoneStateListener mListener; @Override public void ...
阅读全文
posted @ 2016-10-13 14:53
一路向北中
阅读(358)
推荐(0)
posted @ 2016-09-22 15:55
一路向北中
阅读(109)
推荐(0)
摘要:
public static String md5Encode(String psd) { try { MessageDigest digest = MessageDigest.getInstance("MD5"); byte[] bytes = digest.digest(psd.getBytes()); ...
阅读全文
posted @ 2016-09-05 16:30
一路向北中
阅读(143)
推荐(0)
posted @ 2016-08-31 09:29
一路向北中
阅读(116)
推荐(0)
摘要:
要同时设置data和type的话只能用函数setDataAndType
阅读全文
posted @ 2016-08-28 12:56
一路向北中
阅读(407)
推荐(0)
摘要:
在 Android Studio 中,对于 VersionName 和 VersionCode 的声明转移到了 Module 的build.gradle文件中。请修改build.gradle 的以下部分
阅读全文
posted @ 2016-08-18 16:47
一路向北中
阅读(187)
推荐(0)
posted @ 2016-08-18 15:42
一路向北中
阅读(145)
推荐(0)
摘要:
1,模拟器api22(23是6.0要求权限) 2,androidpn-client.jar 添加jar包 3,res下建立raw文件夹,加入androidpn.properties apiKey=1234567890 xmppHost=123.56.服务器地址 xmppPort=5222 4,权限
阅读全文
posted @ 2016-08-15 15:35
一路向北中
阅读(243)
推荐(0)
摘要:
import com.sun.org.apache.xml.internal.security.utils.Base64; import javax.crypto.Cipher; import javax.crypto.SecretKey; import javax.crypto.spec.IvParameterSpec; impo...
阅读全文
posted @ 2016-08-01 15:29
一路向北中
阅读(1007)
推荐(0)
摘要:
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...
阅读全文
posted @ 2016-07-31 10:56
一路向北中
阅读(1248)
推荐(0)
摘要:
import android.app.Notification; import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Intent; import android.graphics.BitmapFactory; import android.os.Bund...
阅读全文
posted @ 2016-07-29 13:45
一路向北中
阅读(230)
推荐(0)
摘要:
1,先下载vitamo https://www.vitamio.org/Download/ 2,import module vitamio 3,修改build.gradle compileSdkVersion Integer.parseInt(project.ANDROID_BUILD_SDK_VE
阅读全文
posted @ 2016-07-28 08:12
一路向北中
阅读(480)
推荐(0)
摘要:
import android.Manifest; import android.content.ComponentName; import android.content.Intent; import android.content.ServiceConnection; import android.content.pm.PackageManager; import android.os.Bun...
阅读全文
posted @ 2016-07-26 16:44
一路向北中
阅读(192)
推荐(0)
摘要:
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...
阅读全文
posted @ 2016-07-25 13:53
一路向北中
阅读(241)
推荐(0)
摘要:
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); btn1 = (Button) findViewById(R.id.btn1); ...
阅读全文
posted @ 2016-07-21 14:42
一路向北中
阅读(311)
推荐(0)
摘要:
在 Android 4.4 之后,ACTION_MEDIA_MOUNTED 这个广播只能由系统发出,APP 只能监听,不能广播,所以通过发送广播的方式来让系统扫描文件的做法已经是走不通了。 扫描/storage/sdcard/下的所有文件
阅读全文
posted @ 2016-07-21 14:40
一路向北中
阅读(218)
推荐(0)
posted @ 2016-07-21 12:53
一路向北中
阅读(205)
推荐(0)