Posts

Showing posts from June, 2017

every one access tomcat web directory add authentication

i want to add xxx web directory in tomcat with specify user and password access. webapps/xxx/WEB-INF/web.xml:   <security-constraint>     <web-resource-collection>       <web-resource-name>HTML Manager interface (for humans)</web-resource-name>       <url-pattern>/*</url-pattern>     </web-resource-collection>     <auth-constraint>        <role-name>manager-my</role-name>     </auth-constraint>   </security-constraint>    <login-config>     <auth-method>BASIC</auth-method>     <realm-name>Tomcat Manager Application</realm-name>   </login-config> conf/tomcat-users.xml: <role rolename="manager-my"> <user password="hx98.com.cn" roles="manager-my" username="hx98"> </user></role> restart tomcat . ok!

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 3

below is my mysql(MariaDB) server stored procedure code # call `pkrss_get_rssitem_vo`(2, 0, 0, 0, 1, 0, 0, 0); # flag = 1: select items # flag =-1: select items count # flag = 2: select items with image mode # flag =-2: select items with image mode count # flag = 3: get top 1 item with each table # flag = 4: get top n item with each table CREATE PROCEDURE `pkrss_get_rssitem_vo`(IN `lid` INT, IN `cid` INT, IN `tid` INT, IN `offset` INT, IN `limit` INT, IN `idOrderBy` INT, IN `timeOrderBy` INT, IN `flag` INT) BEGIN DECLARE s VARCHAR(512); DECLARE s2 VARCHAR(512); DECLARE t VARCHAR(128); DECLARE selImgMode INT DEFAULT 0; DECLARE selCountMode INT DEFAULT 0; IF flag = -1 THEN SET selCountMode = 1; END IF; IF flag = -2 THEN SET selCountMode = 1; SET selImgMode = 1; END IF; IF flag = 2 THEN SET selImgMode = 1; END IF; SET s = ''; IF selCountMode = 1 THEN SET s = CONCAT(s,'S...

中国大陆交易所2017年最新行情数据Level1费用与证券财经数据服务咨询汇总

背景 现在我在福建海峡互联网金融信息服务有限公司,老板考虑企业转型,才被逼着考虑买上深行情,但是因为钱的问题,不知道会不会买。他最近一直让我问上、深所的数据报价。 以前像我们公司这种做现货的小金融公司太多,国家查得严,最近倒了很多,我们老板不想倒,才考虑做合规产品。 这样没有后顾之忧,以后要上市要融资了,这些都会查的。 下面是个人最近2017年上半年咨询行情报价的情况汇总,仅供参考,不做为确切真实依据,如果有侵权,请告知,第一时间删除。 汇总情况 于上深交所 Level1 服务费用包括:数据提示牌照费用 + 数据传输费用。       如我们现在急着只需要微信和移动的 Level1 单平台无线增值平台证券行情费用,预计需要上交所牌照费用 30 万 / 年 + 上交所 Internet 数据传输免费 + 深交所牌照费用 30 万 / 年 + 深圳通云数据传输费用( 8000/ 年 +8 万 / 年) =68.8 万 / 年(预计)。其中正式购买后才可以申请最长不超过 2 个月的测试期。       另外关于目前炒股软件里的财经 F10 新闻资讯巨潮资讯由深交所信息公司提供,价格见附件《巨潮数据库服务报价单 2016.pdf 》, 因为隐私问题,如需商务使用,可私人联系我索要 。      Level1 数据提示牌照授权费 深交所牌照费用 : PC 电脑终端 30 万 / 年,无线终端(微信 +APP ) 30 万 / 年,或者同时采购两款平台价格打 8 折 = ( 30+30 ) *0.8=48 万 / 年。 上交所牌照费用 : 单平台终端报价与深交所类似,但两款平台同时采购价约 45 万 / 年。 注意:深交所有要求,一次性申请两个应用可以打八折,如果你们 分开申请,比如先申请无线, 过半年后再申请软件,是不能打折的。以后年度就是续约了。。。按照合同来续约的。         上交所暂未确认此打折疑问。 Level1 数据汇总费用   采购一款深 Level1 平台价格 =...