V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  xuhaoyangx  ›  全部回复第 112 页 / 共 137 页
回复总数  2739
1 ... 108  109  110  111  112  113  114  115  116  117 ... 137  
2016-02-08 22:31:24 +08:00
回复了 pheyer 创建的主题 iPhone iPhone6 锁屏密码自动变成 6 位了,明明设置的 4 位
@pheyer 现在 lz 你用 itunes 备份再刷,在恢复东西还在的,可能一些自动登陆自动填密码的没了,运动数据好像也没了,其他都在
2016-02-08 19:44:24 +08:00
回复了 macemers 创建的主题 Android 求推荐:千元手机送长辈
4c
当时我就记得别人这么说过 touchid 的

一个前提 ios 的 touchid api 已经放出来了, 5s 发布 1 年后的事情
某支付工具, api 放出来了好久都没开启相关通过指纹进行支付, mate7 还是哪台华为的机子,背部指纹的,一出来就给做出了这个功能,原因就是 5s 的 touchid 识别尺寸太小了,达不到识别标准?记不太清楚了,还说了苹果能拿这么小尺寸的做到识别很厉害,但是不安全。
iphone6 就是增大了尺寸,但是发布会屁都没说,就是不好意思说不安全的问题哈哈
2016-02-06 18:58:47 +08:00
回复了 holinhot 创建的主题 SSH 我想说下 Xshell 真 tm 好用
@maskerTUI xftp 没有 winscp 好用
ssh,ngrok
2016-02-05 23:27:07 +08:00
回复了 wangleineo 创建的主题 问与答 V 友们有多少用 coding.net 的?和 Github 比起来如何?
用,私人项目
2016-02-05 17:17:55 +08:00
回复了 tyhunter 创建的主题 Linux Fail2Ban 启动后无效果
@ZyZyZzz 因为网上教程都写在 conf 2333
楼上解释很清楚
2016-02-05 16:30:42 +08:00
回复了 hongfeiyu 创建的主题 程序员 检测不出显示器的最高分辨率是为什么?
电脑用 vga 接电视都是有点问题的,一般顶多 1366×768 [差不多] 这个分辨率。
接电视请用 hdmi
2016-02-01 09:36:09 +08:00
回复了 czipeng 创建的主题 Linux centos7 比 6 有那么大的改动吗?最近看很多人都不愿意用 7
@changqingshuya 6 还是可以用 docker 的
2016-01-31 19:34:07 +08:00
回复了 hellokittyer 创建的主题 问与答 centos 生产环境原本是 6.x 的,有多少人升级到 7 了
已经 7

@shinko firewalld 还是用的不错的,简化了许多。
@zongwan 集群要么从程序逻辑做好,要么就 proxy ,要么就中间件来一个
@li24361
@sherlocktheplant
是 SS 的问题,虽然网络设置没有设置全局代理。但是 jdk7 的 socket 还是走了代理,然后出现了问题。
为啥-。-jdk8 没这个问题呢,迷醉。重置了网络设置就好了。


@ququzone 这不是生产环境。是一启动就有。
@Infernalzero mybatis 其实没有什么配置就开启了 cache 。
@zacard 解决了,出现问题时是用 13
@Infernalzero 解决了, thk
@sherlocktheplant 谢谢推荐
@ghostsf delete id=0 删表数据,遇到过两次,无法重现 bug ,一次是大项目中出现,一个就是我现在这个做的小的。好几次内存泄露严重。
@sherlocktheplant 之前这个项目是原生写的-。-没有问题。 socket 代理有 ss , telnet 数据库好像是没问题的。
@li24361 谢谢了。
@li24361 是在本机测试的
@li24361 不好意思,我以为放出来了。
上面那个 applicationContext 给错了。
连接配置我是放在 applicationContext 的
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:util="http://www.springframework.org/schema/util"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jdbc="http://www.springframework.org/schema/jdbc" xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd
http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc-4.0.xsd
http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-4.0.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsd
http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd
http://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task-4.0.xsd">

<description>Spring 公共配置</description>

<!-- 开启定时任务 -->
<task:annotation-driven />

<!-- MyBatis 配置 -->
<bean id="sqlSessionFactory" class="org.mybatis.spring.SqlSessionFactoryBean">
<property name="dataSource" ref="dataSource" />
<!-- 显式指定 Mapper 文件位置 -->
<property name="mapperLocations" value="classpath*:/mybatis/*Mapper.xml" />
<!-- mybatis 配置文件路径 -->
<property name="configLocation" value="classpath:/mybatis/config.xml" />
</bean>

<bean id="sqlSessionTemplate" class="org.mybatis.spring.SqlSessionTemplate">
<constructor-arg index="0" ref="sqlSessionFactory" />
<!-- 这个执行器会批量执行更新语句, 还有 SIMPLE 和 REUSE -->
<!-- <constructor-arg index="1" value="BATCH" /> -->
</bean>

<!-- 扫描 basePackage 接口 -->
<bean class="org.mybatis.spring.mapper.MapperScannerConfigurer">
<!-- 映射器接口文件的包路径, -->
<property name="basePackage" value="com.xhy.asp.one.dao" />
</bean>

<!-- 使用 annotation 定义事务 -->
<bean id="transactionManager"
class="org.springframework.jdbc.datasource.DataSourceTransactionManager">
<property name="dataSource" ref="dataSource"></property>
</bean>
<tx:annotation-driven transaction-manager="transactionManager"
proxy-target-class="true" />

<!-- 数据源配置, 使用 Tomcat JDBC 连接池 -->
<!-- 阿里巴巴 -->
<bean id="dataSource" class="com.alibaba.druid.pool.DruidDataSource"
init-method="init" destroy-method="close">
<!-- 基本属性 url 、 user 、 password -->
<property name="url" value="${jdbc.url}" />
<property name="username" value="${jdbc.username}" />
<property name="password" value="${jdbc.password}" />

<!-- 配置初始化大小、最小、最大 -->
<property name="initialSize" value="${ds.initialSize}" />
<property name="minIdle" value="${ds.minIdle}" />
<property name="maxActive" value="${ds.maxActive}" />

<!-- 配置获取连接等待超时的时间 -->
<property name="maxWait" value="${ds.maxWait}" />

<!-- 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 -->
<property name="timeBetweenEvictionRunsMillis" value="${ds.timeBetweenEvictionRunsMillis}" />

<!-- 配置一个连接在池中最小生存的时间,单位是毫秒 -->
<property name="minEvictableIdleTimeMillis" value="${ds.minEvictableIdleTimeMillis}" />

<property name="validationQuery" value="SELECT 'x'" />
<property name="testWhileIdle" value="true" />
<property name="testOnBorrow" value="false" />
<property name="testOnReturn" value="false" />

<!-- 打开 PSCache ,并且指定每个连接上 PSCache 的大小 -->
<property name="poolPreparedStatements" value="false" />
<property name="maxPoolPreparedStatementPerConnectionSize"
value="20" />

<!-- 配置监控统计拦截的 filters -->
<property name="filters" value="stat" />
</bean>
<!-- <bean id="dataSource" class="org.apache.tomcat.jdbc.pool.DataSource"
destroy-method="close"> Connection Info <property name="driverClassName"
value="${jdbc.driver}" /> <property name="url" value="${jdbc.url}" /> <property
name="username" value="${jdbc.username}" /> <property name="password" value="${jdbc.password}"
/> Connection Pooling Info <property name="maxActive" value="${jdbc.pool.maxActive}"
/> <property name="maxIdle" value="${jdbc.pool.maxIdle}" /> <property name="minIdle"
value="0" /> <property name="defaultAutoCommit" value="false" /> </bean> -->

<!-- production 环境 -->
<context:property-placeholder
ignore-unresolvable="true" file-encoding="utf-8" location="classpath:jdbc.properties" />

</beans>


jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://127.0.0.1:3306/2015_repair?useUnicode=true&characterEncoding=utf-8
jdbc.username=root
jdbc.password=
##DataSource Global Setting

#配置初始化大小、最小、最大
ds.initialSize=1
ds.minIdle=1
ds.maxActive=20

#配置获取连接等待超时的时间
ds.maxWait=60000

#配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
ds.timeBetweenEvictionRunsMillis=60000

#配置一个连接在池中最小生存的时间,单位是毫秒
ds.minEvictableIdleTimeMillis=300000
@zacard 测试过,不是名字的问题
1 ... 108  109  110  111  112  113  114  115  116  117 ... 137  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1005 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 58ms · UTC 20:01 · PVG 04:01 · LAX 13:01 · JFK 16:01
Developed with CodeLauncher
♥ Do have faith in what you're doing.