- 博客(8)
- 收藏
- 关注
转载 mysql 数据库设计及使用
一、库表设计1.1 引擎选择 在 mysql 5.1 中,引入了新的插件式存储引擎体系结构,允许将存储引擎加载到正在运新的 mysql 服务器中。使用 mysql 插件式存储引擎体系结构,允许数据库专业人员或者设计库表的软件开发人员为特定的应用需求选择专门的存储引擎,完全不需要管理任何特殊的应用编码要求,也无需考虑所有的底层实施细节。因此,尽管不同的存储引擎具有不同的能力,应用程序是与之...
2018-05-24 17:52:16
421
转载 Nginx反向代理,负载均衡,redis session共享,keepalived高可用
使用的资源:nginx主服务器一台,nginx备服务器一台,使用keepalived进行宕机切换。tomcat服务器两台,由nginx进行反向代理和负载均衡,此处可搭建服务器集群。redis服务器一台,用于session的分离共享。nginx主服务器:192.168.50.133nginx备服务器:192.168.50.135tomcat项目服务器1:192.168.50....
2018-05-17 14:53:25
443
转载 eclipse maven 错误集合
问题 : The requested profile “pom.xml” could not be activated because it does not exist: 解决方案 : mvn clean install -Dmaven.test.skip=true
2018-05-17 14:10:17
242
转载 数据库设计及索引应用原则
1)数据库设计方面: a. 对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 b. 应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num is null 可以在num上设置默认值0,确保表中nu...
2018-05-16 17:51:23
223
原创 线程模拟生产 消费 模式
package test;import java.util.LinkedList;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;public class QueueTest {public static void main(String[] ar
2018-01-04 10:09:22
211
原创 spring boot + mybatis
1 pom.xml 加入mybatis依赖和数据库连接依赖,这里我们使用 druidorg.mybatis.spring.bootmybatis-spring-boot-starter1.3.0mysqlmysql-connector-java5.1.21com.alibabadruid1.0.11com.al
2018-01-04 09:51:42
284
翻译 Spring boot项目搭建
1 构建一个 maven 工程。2 编辑 pom.xml ,官网中已经给了搭建工程所需的基本依赖,可以去官网查看。org.springframework.bootspring-boot-starter-parent1.4.7.RELEASEorg.springframework.bootspring-boot-starter
2018-01-02 15:06:32
154
转载 创建spring boot 项目 报错 :
创建spring boot 项目 报错 : The type org.springframework.context.ConfigurableApplicationContext cannot be resolved. It is indirectly referenced from required .class files解决方案:Go to the directory of yo
2017-12-29 15:25:47
807
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人