This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@GET | |
public List<ProductDto> search(@InjectParam QueryParams params) | |
{ | |
List<Product> products = productService.findAll(...); | |
return mapper.map(products); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<artifactId>maven-assembly-plugin</artifactId> | |
<configuration> | |
<descriptorRefs> | |
<descriptorRef>jar-with-dependencies</descriptorRef> | |
</descriptorRefs> | |
<archive> | |
<manifest> | |
<addClasspath>true</addClasspath> | |
<mainClass>com.rebuy.service.order.runner.OrderService</mainClass> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
server_name trunk.purchase.localhost.rebuy.loc; | |
root /Users/Daniel/Sites/php/rebuy-verkaufen/docroot; | |
index index.php; | |
if ($request_filename ~ "\.(ico|gif|jpg|jpeg|png|html|css|js|pdf)$") { | |
rewrite ^/verkaufen(.*) $1 last; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Transactional(readOnly = false) | |
public Item save(Item item) | |
{ | |
return repo.save(item); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create database deadlock_test; | |
delimiter // | |
CREATE PROCEDURE `update_mview`(IN `_id` INT) | |
NO SQL | |
replace into mview | |
select | |
bar.id, | |
bar.name, | |
count(*) as num_foo | |
from |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> explain SELECT ... FROM `products` AS `p` WHERE (p.category_id = 91) AND (p.id > 2303852) ORDER BY `p`.`id` ASC LIMIT 10; | |
+----+-------------+-------+------+------------------------------------+----------------+---------+-------+--------+-------------+ | |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
+----+-------------+-------+------+------------------------------------+----------------+---------+-------+--------+-------------+ | |
| 1 | SIMPLE | p | ref | PRIMARY,category_id,category_id_id | category_id_id | 4 | const | 610412 | Using where | | |
+----+-------------+-------+------+------------------------------------+----------------+---------+-------+--------+-------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> explain SELECT SQL_NO_CACHE ... FROM `products` AS `p` force index (fooo) WHERE (p.category_id = 91) AND (p.id > 2303852) ORDER BY `p`.`id` ASC LIMIT 10; | |
+----+-------------+-------+-------+---------------+------+---------+------+--------+-------------+ | |
| id | select_type | table | type | possible_keys | key | key_len | ref | rows | Extra | | |
+----+-------------+-------+-------+---------------+------+---------+------+--------+-------------+ | |
| 1 | SIMPLE | p | range | fooo | fooo | 4 | NULL | 985198 | Using where | | |
+----+-------------+-------+-------+---------------+------+---------+------+--------+-------------+ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Aktuelle Implementierung | |
====================================== | |
Requests zum erzeugen | |
> POST /item | |
> {productId:5000, price:1999} | |
< 201 CREATED | |
< Location: .../item/1 | |
< {id:1, productId:5000, price:1999} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 10.55.1.1:80; | |
server_name status.rebuy.de; | |
location ~* /(\d+.\d+.\d+.\d+)-(\d+) { | |
fastcgi_pass $1:$2; | |
fastcgi_param REQUEST_URI status.php; | |
fastcgi_param SCRIPT_NAME status.php; | |
fastcgi_param PATH_INFO status.php; | |
fastcgi_param SCRIPT_FILENAME $document_root/status.php; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
url = 'http://' + args.hostname + ':' + args.port + '/' + args.path.lstrip('/'); | |
parts = urlparse(url) | |
qs = parse_qsl(parts.query) | |
qs.append({'json':'1'}) | |
print urllib.urlencode(qs) |
OlderNewer