tangxininjava的博客
tangxininjava · 共 68 篇文章
[置顶] J2EE开发练手(第二章)
权限菜单就采用递归的方式,后续再优化。 通过页面来分析,页面如下: 利用dtree的话我数据表就这样设计: CREATE TABLE `privilege` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8_bin DEFAULT NULL, `parent_id` int(11) DEFAULT NULL, `url` varchar(255) COLLATE utf8_bin DEFAULT NULL, `code` varchar(255) COLLATE utf8_bin DEFAULT …
2013-02-07 16:47 · J2EE · 评论(0)
[置顶] J2EE开发练手(第一章)
根据类图建立表 CREATE TABLE `account` ( `account_id` bigint(20) NOT NULL, `name` varchar(255) COLLATE utf8_bin NOT NULL, `currency` varchar(100) COLLATE utf8_bin NOT NULL, `balance` varchar(255) COLLATE utf8_bin NOT NULL, `customer_id` bigint(20) NOT NULL, PRIMARY KEY (`account_id`) ) ENGINE=InnoDB DEFAUL…
2013-02-07 09:30 · J2EE · 评论(0)
[置顶] 适配器模式
1.设计模式学习,适配器模式 1.练习思考,demo:欧式插座是三孔的,美式插头是用于两孔插座,这时他们之间就需要一个适配器(交流电适配器)来满足需求了。 这上面有三个对象,如何定义哪个是接口,那个是对象。适配器应该定义为接口还是对象呢?先思考一分钟:大体描述下: 欧式插座定义规范是三孔的,把欧式插座定义为接口,适配器是为了衔接或链接欧式三孔插座和美式两头插头的,因此把适配器 定义为类,适配器中再适配对象(欧式插座)即定义一个,构造函数去引入欧式插座对象。那美式插头对象如何处理呢?这个思路不对呀。 大致思路再思考下:美式插头的动作是插入到交流电适配器上,然后交流电适配器再插入到欧式三孔插座上…
2012-10-12 13:46 · 设计模式 · 评论(0)
[置顶] 向 J2EE 架构师 学习之路
首先表明下这个只是个人记录,看到觉得很烂莫怪。 认真看点书学点知识,脚踏实地的走,记录学到的东西,收获的东西,慢慢的成长。 今天心血来潮,想看下书,百度搜索了下到csdn下载了一本《 The J2EE Architect's Handbook 》,毕竟想成为J2EE架构师自己觉得自己路还很长,一直觉得自己很笨,做事方法肯定有问题,一会看js,一会看java,一会看j2ee,感觉确认很烦,自己未来的路很迷茫,但是目前中国软件是这个形式呀,要什么都会,数据库,操作系统,java就要学什么设计模式,算法,开源框架,很多,但是没办法,别人都能坚持下来并且成功为什么我不能呢? 各种压力,哎过两年肯定要…
2012-08-05 01:04 · J2EE · 评论(0)
[置顶] mysql.txt
创建数据库新增用户,并赋予用户对数据库的操作权限 2010-12-01 10:26:41| 分类: mysql | 标签: |字号大中小 订阅 . 3.修改id字段的增长初始值 ALTER TBALE TableName AUTO_INCREMENT=1 net start mysql 启动 net stop mysql 暂停 mysql创建数据库和用户 创建数据库: Create DATABASE IF NOT EXISTS ismp default charset utf8 COLLATE utf8_general_ci; 用户授权 use mysql; grant select,ins…
2012-07-17 12:45 · mysql · 评论(0)
[置顶] Java开发资料
已上传的文件: HtmlDom.rar iBATIS-SqlMaps-2-入门教程.rar jQuery_1.4.1_中文速查参考.rar JavaScript中文版.rar http://www.javabeginner.com http://blog.csdn.net/uniorg/article/details/5439230 http://www.coreservlets.com/ http://docs.oracle.com/javase/tutorial/essential/concurrency/interrupt.html http://axis.apache.org/axi…
2012-05-28 09:34 · JAVA软件开发 · 评论(3)
[置顶] Ibatis2.x学习实战
ibatis2.x学习实战 1.到谷歌下载ibatis2.x 包 http://code.google.com/p/mybatis/downloads/detail?name=ibatis-2.3.4.726.zip&can=4&q= 2.打开ibatis-2.3.4.726文件夹 3.使用simple_example代码 4.快速构建自己的工程 (我这里使用myeclipse6.5) 测试是否成功? package ibatistest; import java.sql.SQLException; import com.mydomain.data.SimpleExample; import…
2012-05-24 14:48 · ibatis2.x · 评论(0)
mongodb java入门
mongodb java入门: maven工程: pom.xml <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>test</groupId> <arti…
2016-05-19 17:26 · mongodb · 评论(0)
java排序日志输出
1.冒泡排序理解日志输出: String[] r = {"26","53","48","01","03","38","32","15","09"}; [26, 09, 48, 01, 03, 38, 32, 15, 53] ------------------------------- jCount7 [26, 09, 48, 01, 03, 38, 32, 15, 53] j=0 26 compare 09 [26, 09, 48, 01, 03, 38, 32, 15, 53] [26, 09, 48, 01, 03, 38, 32, 15, 53] j=1 09 compare 48 …
2016-05-16 16:29 · java · 评论(0)
intellij idea maven
intellij idea 添加maven project: 1.File new Project 选择Maven 勾选Create from archetype 选择列表中的maven-archetype-webapp 2.next 填写GroupId ArtifactId next 3.在Maven home directory这个页面中最下面有个Properties中添加 archetypeCatalog=internal 4.配置tomcat 如图: 如上图选择Deployment,这个时候你会发现无法添加test项目,这是为什么呢? 这是maven和tomcat之间的关系,mave…
2016-05-16 15:11 · intellij idea · 评论(0)
nginx相同域名不用tomcat端口
nginx相同域名不用tomcat端口 nginx.conf 配置如下: #user nobody; worker_processes 1; #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; #log_format …
2016-05-10 11:07 · nginx · 评论(0)
spring boot rabbitmq
http://tangxininjava.iteye.com/blog/2276211 在上面这篇基础上 使用rabbitmq 当然首先需要安装rabbitmq。关于rabbitmq的安装就不说了。 我安装的windows版本的 安装好了之后访问地址:http://localhost:15672/#/ 默认登录用户名:guest 密码:guest 因为使用的spring boot 代码如下: Application.java package com.zmall; import com.rabbitmq.client.Channel; import com.zmall.service.Rece…
2016-02-12 13:34 · spring boot · 评论(0)
spring boot mybatis mysql
参考来源:https://github.com/hoserdude/spring-boot-mybatis-profile-sandbox 按照上面的例子先导入到自己的IDE中。 第一步配置spring boot的application.properties spring.datasource.url=jdbc:mysql://localhost:3306/mecom spring.datasource.username=root spring.datasource.password=root spring.datasource.driver-class-name=com.mysql.jdb…
2016-02-12 10:26 · spring boot · 评论(1)
log4j配置
log4j 滚动日志原理 11月28号的日志是test.log 那么12月29号的时候会把11月28号的日志重命名为test_2013-11-28.log 那么11月29号的日志就会是test.log 然后30号的时候会把test.log重命名为test_2013-11-29.log 30号的日志为test.log # Attach appender A1 to root. Set root level to Level.DEBUG. log4j.rootLogger=INFO, A2 # Set the level of the logger named "org.apache.log4j…
2013-12-28 23:46 · J2EE · 评论(0)
android开发环境
ADT 22.3.0 (October 2013) Dependencies: Java 1.6 or higher is required. Eclipse Helios (Version 3.6.2) or higher is required. This version of ADT is designed for use with SDK Tools r22.3 . If you haven't already installed SDK Tools r22.3 into your SDK, use the Android SDK Manager to do so. General …
2013-12-16 20:44 · android · 评论(0)