`
文章列表
1、打开cmd命令窗口,先输入命令: net stop mysql 回车 #关闭mysql服务。   进入到D:\SOFT_PHP_PACKAGE\mysql\bin\ 目录下,执行mysqld --skip-grant-tables 启动MySQL Server (如果报错,执行mysqld-nt --skip-grant-tables)如图: 另外打开一个cmd窗口, 依次输入以下命令,将root账户密码重置为123456。(命令输入部分用红色标注) mysql mysql>use mysql; mysql> update user set password=pas ...

mysql 操作工具

mysql 连接工具:SQLyog-8.32    还有一种连接数据库工具DBeaver DBeaver是一个通用的数据库管理工具和 SQL 客户端,支持 MySQL, PostgreSQL, Oracle, DB2, MSSQL, Sybase, Mimer, HSQLDB, Derby, 以及其他兼容 JDBC 的数据库
/**  * Licensed to the Apache Software Foundation (ASF) under one  * or more contributor license agreements.  See the NOTICE file  * distributed with this work for additional information  * regarding copyright ownership.  The ASF licenses this file  * to you under the Apache License, Version 2. ...
package org.gjp;   import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.TimeUnit;   import org.apache.curator.framework.CuratorFramework; import org.apache.curator.framework.CuratorFrameworkFactory; import or ...
Curator对ZK的一些应用场景提供了非常好的实现,而且有很多扩充,这些都符合ZK使用规范  它的主要组件为: Recipes, ZooKeeper的系列recipe实现, 基于 Curator Framework. Framework, 封装了大量ZooKeeper常用API操作,降低了使用难度, 基于Zookeeper增加了一些新特性,对ZooKeeper链接的管理,对链接丢失自动重新链接。 Utilities,一些ZooKeeper操作的工具类包括ZK的集群测试工具路径生成等非常有用,在Curator-Client包下org.apache.curator.utils。 ...
  import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller; import javax.xml.bind.annotation.XmlRootElement;   import org.compass.core.util.reader.StringReader;   @XmlRootElement public class CommPayment {     private String service;// p ...
  import java.io.IOException; import java.net.InetAddress; import java.net.InetSocketAddress; import java.net.Socket; import java.net.SocketAddress; import java.net.UnknownHostException; import java.security.KeyManagementException; import java.security.NoSuchAlgorithmException; import java. ...
在SpringMVC中,bean中定义了Date,double等类型,如果没有做任何处理的话,日期以及double都无法绑定。 解决的办法就是使用spring mvc提供的@InitBinder标签     @Controller public class BoceController extends BaseController {   @InitBinder public void initBinder(WebDataBinder binder) { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy ...

String 注解使用

二 @RequestHeader、@CookieValue @RequestHeader 注解,可以把Request请求header部分的值绑定到方法的参数上。 示例代码: 这是一个Request 的header部分 01.Host localhost:8080 02.Accept text/html,application/xhtml+xml, ...
@RequestMapping RequestMapping是一个用来处理请求地址映射的注解,可用于类或方法上。用于类上,表示类中的所有响应请求的方法都是以该地址作为父路径。 RequestMapping注解有六个属性,下面我们把她分成三类进行说明。 1、 value, method; value: 指定请求的实际地址,指定的地址可以是URI Template 模式(后面将会说明); method: 指定请求的method类型, GET、POST、PUT、DELETE等;   2、 consumes,produces; consumes: 指定处理请求的提交内容类型(Co ...
在使用spring4 使用@ResponseBody 返回中文时发现客户端乱码,奇怪了,已经在web.xml中配置了过滤器 配置如下:  <filter>         <description>字符集过滤器</description>         <filter-name>encodingFilter</filter-name>         <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-c ...

中文乱码问题

使用 sping4 框架在tomcat7 运行时发现使用http的get方法获取的中文乱码。 1.首先配置了一下 spring 的过滤器,访问后中文还是乱码  <filter> <filter-name>springUtf8Encoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding ...
使用eclipse 生成webservice的客户端  过程看附件中的文档   生产代码后调用代码:     public class Main {   public static void main(String[] args) {     try {   String url ="http://localhost:8080/goods-background/services/org.goods.api.face.BaseService?wsdl"; BaseServiceStub stub = new BaseServiceStub(url) ...
 下载 axis2 地址:http://axis.apache.org/axis2/java/core/download.html ,将Code Generator plugin for Eclipse,Service Archive plugin for Eclipse 解压放大eclipse 软件的 eclipse\dropins\plugins 中   代码示例 和搭建过程 在附件中      
  import java.util.regex.Matcher; import java.util.regex.Pattern;   /**  * 数据类型验证  * @author dell  *  */ public class DataValidate {     /*** * 判断 String 是否是 int<br>通过正则表达式判断 *  * @param input * @return */ public static boolean isInteger(String input){ Matcher mer = Pattern. ...
Global site tag (gtag.js) - Google Analytics