Spring 5 Recipes: A Problem-Solution Approach 4th Edition Marten Deinum 2024 scribd download
Spring 5 Recipes: A Problem-Solution Approach 4th Edition Marten Deinum 2024 scribd download
com
https://textbookfull.com/product/spring-5-recipes-a-problem-
solution-approach-4th-edition-marten-deinum/
OR CLICK BUTTON
DOWNLOAD NOW
https://textbookfull.com/product/pro-spring-mvc-with-webflux-web-
development-in-spring-framework-5-and-spring-boot-2-2nd-edition-
marten-deinum/
textboxfull.com
https://textbookfull.com/product/pro-spring-mvc-with-webflux-web-
development-in-spring-framework-5-and-spring-boot-2-2nd-edition-
marten-deinum-2/
textboxfull.com
https://textbookfull.com/product/android-recipes-a-problem-solution-
approach-dave-smith/
textboxfull.com
https://textbookfull.com/product/raku-recipes-a-problem-solution-
approach-j-j-merelo/
textboxfull.com
Pro Spring MVC with WebFlux Web Development in Spring
Framework 5 and Spring Boot 2 Second Edition Marten Deinum
Iuliana Cosmina
https://textbookfull.com/product/pro-spring-mvc-with-webflux-web-
development-in-spring-framework-5-and-spring-boot-2-second-edition-
marten-deinum-iuliana-cosmina/
textboxfull.com
https://textbookfull.com/product/c-recipes-a-problem-solution-
approach-1st-edition-shirish-chavan/
textboxfull.com
https://textbookfull.com/product/javascript-recipes-a-problem-
solution-approach-1st-edition-russ-ferguson/
textboxfull.com
https://textbookfull.com/product/wxpython-recipes-a-problem-solution-
approach-1st-edition-mike-driscoll/
textboxfull.com
https://textbookfull.com/product/matlab-recipes-a-problem-solution-
approach-2nd-edition-michael-paluszek/
textboxfull.com
Spring 5 Recipes
A Problem-Solution Approach
—
Fourth Edition
—
Marten Deinum
Daniel Rubio
Josh Long
Spring 5 Recipes
A Problem-Solution Approach
Fourth Edition
Marten Deinum
Daniel Rubio
Josh Long
Spring 5 Recipes: A Problem-Solution Approach
Marten Deinum Daniel Rubio
Meppel, Drenthe, The Netherlands Ensenada, Baja California, Mexico
Josh Long
Canyon Country, California, USA
ISBN-13 (pbk): 978-1-4842-2789-3 ISBN-13 (electronic): 978-1-4842-2790-9
DOI 10.1007/978-1-4842-2790-9
Library of Congress Control Number: 2017954984
Copyright © 2017 by Marten Deinum, Daniel Rubio, and Josh Long
This work is subject to copyright. All rights are reserved by the Publisher, whether the whole or part of the
material is concerned, specifically the rights of translation, reprinting, reuse of illustrations, recitation,
broadcasting, reproduction on microfilms or in any other physical way, and transmission or information
storage and retrieval, electronic adaptation, computer software, or by similar or dissimilar methodology now
known or hereafter developed.
Trademarked names, logos, and images may appear in this book. Rather than use a trademark symbol with
every occurrence of a trademarked name, logo, or image we use the names, logos, and images only in an
editorial fashion and to the benefit of the trademark owner, with no intention of infringement of the trademark.
The use in this publication of trade names, trademarks, service marks, and similar terms, even if they are
not identified as such, is not to be taken as an expression of opinion as to whether or not they are subject to
proprietary rights.
While the advice and information in this book are believed to be true and accurate at the date of publication,
neither the authors nor the editors nor the publisher can accept any legal responsibility for any errors or
omissions that may be made. The publisher makes no warranty, express or implied, with respect to the
material contained herein.
Cover image by Freepik (www.freepik.com)
Managing Director: Welmoed Spahr
Editorial Director: Todd Green
Acquisitions Editor: Steve Anglin
Development Editor: Matthew Moodie
Technical Reviewer: Massimo Nardone
Coordinating Editor: Mark Powers
Copy Editor: Kim Wimpsett
Distributed to the book trade worldwide by Springer Science+Business Media New York,
233 Spring Street, 6th Floor, New York, NY 10013. Phone 1-800-SPRINGER, fax (201) 348-4505, e-mail
orders-ny@springer-sbm.com, or visit www.springeronline.com. Apress Media, LLC is a California LLC
and the sole member (owner) is Springer Science + Business Media Finance Inc (SSBM Finance Inc).
SSBM Finance Inc is a Delaware corporation.
For information on translations, please e-mail rights@apress.com, or visit www.apress.com/
rights-permissions.
Apress titles may be purchased in bulk for academic, corporate, or promotional use. eBook versions and
licenses are also available for most titles. For more information, reference our Print and eBook Bulk Sales
web page at www.apress.com/bulk-sales.
Any source code or other supplementary material referenced by the author in this book is available to
readers on GitHub via the book’s product page, located at www.apress.com/9781484227893. For more
detailed information, please visit www.apress.com/source-code.
Printed on acid-free paper
Contents at a Glance
■
■Chapter 1: Spring Development Tools�������������������������������������������������������������������� 1
■
■Chapter 2: Spring Core Tasks������������������������������������������������������������������������������ 27
■
■Chapter 3: Spring MVC�������������������������������������������������������������������������������������� 117
■
■Chapter 4: Spring REST������������������������������������������������������������������������������������� 183
■
■Chapter 5: Spring MVC: Async Processing�������������������������������������������������������� 209
■
■Chapter 6: Spring Social������������������������������������������������������������������������������������ 267
■
■Chapter 7: Spring Security�������������������������������������������������������������������������������� 297
■
■Chapter 8: Spring Mobile����������������������������������������������������������������������������������� 345
■
■Chapter 9: Data Access������������������������������������������������������������������������������������� 361
■
■Chapter 10: Spring Transaction Management��������������������������������������������������� 415
■
■Chapter 11: Spring Batch���������������������������������������������������������������������������������� 447
■
■Chapter 12: Spring with NoSQL������������������������������������������������������������������������� 483
■
■Chapter 13: Spring Java Enterprise Services and Remoting Technologies������� 541
■
■Chapter 14: Spring Messaging�������������������������������������������������������������������������� 615
■
■Chapter 15: Spring Integration�������������������������������������������������������������������������� 655
iii
■ Contents at a Glance
■
■Chapter 16: Spring Testing�������������������������������������������������������������������������������� 691
■
■Chapter 17: Grails���������������������������������������������������������������������������������������������� 731
■
■Appendix A: Deploying to the Cloud������������������������������������������������������������������ 775
■
■Appendix B: Caching����������������������������������������������������������������������������������������� 795
Index��������������������������������������������������������������������������������������������������������������������� 821
iv
Contents
■
■Chapter 1: Spring Development Tools�������������������������������������������������������������������� 1
1-1. Build a Spring Application with the Spring Tool Suite����������������������������������������������� 1
Problem�������������������������������������������������������������������������������������������������������������������������������������������������� 1
Solution�������������������������������������������������������������������������������������������������������������������������������������������������� 1
How It Works������������������������������������������������������������������������������������������������������������������������������������������� 2
v
■ Contents
Summary������������������������������������������������������������������������������������������������������������������������ 26
■
■Chapter 2: Spring Core Tasks������������������������������������������������������������������������������ 27
2-1. Use a Java Config to Configure POJOs������������������������������������������������������������������� 28
Problem������������������������������������������������������������������������������������������������������������������������������������������������ 28
Solution������������������������������������������������������������������������������������������������������������������������������������������������ 28
How It Works����������������������������������������������������������������������������������������������������������������������������������������� 28
2-3. Use POJO References and Autowiring to Interact with Other POJOs���������������������� 37
Problem������������������������������������������������������������������������������������������������������������������������������������������������ 37
Solution������������������������������������������������������������������������������������������������������������������������������������������������ 37
How It Works����������������������������������������������������������������������������������������������������������������������������������������� 37
vi
■ Contents
2-6. Use Data from External Resources (Text Files, XML Files,
Properties Files, or Image Files)������������������������������������������������������������������������������������� 49
Problem������������������������������������������������������������������������������������������������������������������������������������������������ 49
Solution������������������������������������������������������������������������������������������������������������������������������������������������ 50
How It Works����������������������������������������������������������������������������������������������������������������������������������������� 50
2-7. Resolve I18N Text Messages for Different Locales in Properties Files������������������� 54
Problem������������������������������������������������������������������������������������������������������������������������������������������������ 54
Solution������������������������������������������������������������������������������������������������������������������������������������������������ 54
How It Works����������������������������������������������������������������������������������������������������������������������������������������� 54
2-11. Use Spring Environments and Profiles to Load Different Sets of POJOs�������������� 69
Problem������������������������������������������������������������������������������������������������������������������������������������������������ 69
Solution������������������������������������������������������������������������������������������������������������������������������������������������ 69
How It Works����������������������������������������������������������������������������������������������������������������������������������������� 69
vii
■ Contents
viii
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 115
■
■Chapter 3: Spring MVC�������������������������������������������������������������������������������������� 117
3-1. Develop a Simple Web Application with Spring MVC�������������������������������������������� 117
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 117
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 117
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 119
ix
■ Contents
x
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 181
■
■Chapter 4: Spring REST������������������������������������������������������������������������������������� 183
4-1. Publish XML with REST Services�������������������������������������������������������������������������� 183
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 183
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 183
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 184
Summary���������������������������������������������������������������������������������������������������������������������� 208
xi
■ Contents
■
■Chapter 5: Spring MVC: Async Processing�������������������������������������������������������� 209
5-1. Handle Requests Asynchronously with Controllers and TaskExecutor����������������� 209
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 209
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 209
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 210
5-7. Publish and Consume JSON with Reactive REST Services����������������������������������� 257
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 257
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 257
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 257
xii
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 266
■
■Chapter 6: Spring Social������������������������������������������������������������������������������������ 267
6-1. Set Up Spring Social��������������������������������������������������������������������������������������������� 267
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 267
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 267
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 267
xiii
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 295
■
■Chapter 7: Spring Security�������������������������������������������������������������������������������� 297
7-1. Secure URL Access����������������������������������������������������������������������������������������������� 298
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 298
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 298
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 299
xiv
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 344
■
■Chapter 8: Spring Mobile����������������������������������������������������������������������������������� 345
8-1. Detect Devices Without Spring Mobile������������������������������������������������������������������ 345
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 345
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 345
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 345
xv
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 360
■
■Chapter 9: Data Access������������������������������������������������������������������������������������� 361
Problems with Direct JDBC������������������������������������������������������������������������������������������ 362
Setting Up the Application Database���������������������������������������������������������������������������� 362
Understanding the Data Access Object Design Pattern���������������������������������������������������������������������� 363
xvi
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 414
xvii
■ Contents
■
■Chapter 10: Spring Transaction Management��������������������������������������������������� 415
10-1. Avoid Problems with Transaction Management�������������������������������������������������� 416
Manage Transactions with JDBC Commit and Rollback��������������������������������������������������������������������� 422
xviii
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 446
■
■Chapter 11: Spring Batch���������������������������������������������������������������������������������� 447
Runtime Metadata Model��������������������������������������������������������������������������������������������� 448
11-1. Set Up Spring Batch’s Infrastructure������������������������������������������������������������������ 449
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 449
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 449
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 449
xix
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 481
■
■Chapter 12: Spring with NoSQL������������������������������������������������������������������������� 483
12-1. Use MongoDB����������������������������������������������������������������������������������������������������� 483
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 483
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 483
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 484
xx
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 540
■
■Chapter 13: Spring Java Enterprise Services and Remoting Technologies������� 541
13-1. Register Spring POJOs as JMX MBeans������������������������������������������������������������� 541
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 541
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 542
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 542
xxi
■ Contents
13-9. Expose and Invoke SOAP Web Services with JAX-WS���������������������������������������� 588
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 588
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 588
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 588
13-11. Expose and Invoke SOAP Web Services with Spring-WS���������������������������������� 599
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 599
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 599
13-12. Develop SOAP Web Services with Spring-WS and XML Marshalling���������������� 606
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 606
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 607
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 607
Summary���������������������������������������������������������������������������������������������������������������������� 613
xxii
■ Contents
■
■Chapter 14: Spring Messaging�������������������������������������������������������������������������� 615
14-1. Send and Receive JMS Messages with Spring��������������������������������������������������� 615
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 615
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 616
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 616
Summary���������������������������������������������������������������������������������������������������������������������� 654
xxiii
■ Contents
■
■Chapter 15: Spring Integration�������������������������������������������������������������������������� 655
15-1. Integrate One System with Another Using EAI���������������������������������������������������� 655
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 655
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 655
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 655
xxiv
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 689
■
■Chapter 16: Spring Testing�������������������������������������������������������������������������������� 691
16-1. Create Tests with JUnit and TestNG�������������������������������������������������������������������� 692
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 692
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 692
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 692
xxv
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 730
■
■Chapter 17: Grails���������������������������������������������������������������������������������������������� 731
17-1. Get and Install Grails������������������������������������������������������������������������������������������� 731
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 731
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 731
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 731
xxvi
■ Contents
17-6. Generate CRUD Controllers and Views for an Application’s Domain Classes������ 743
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 743
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 743
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 743
xxvii
■ Contents
Summary���������������������������������������������������������������������������������������������������������������������� 772
■
■Appendix A: Deploying to the Cloud������������������������������������������������������������������ 775
A-1. Sign Up for CloudFoundry������������������������������������������������������������������������������������� 775
Problem���������������������������������������������������������������������������������������������������������������������������������������������� 775
Solution���������������������������������������������������������������������������������������������������������������������������������������������� 775
How It Works��������������������������������������������������������������������������������������������������������������������������������������� 776
xxviii
Exploring the Variety of Random
Documents with Different Content
saw, that it is no other than the isles of St. Ambrose and St. Felix,
which are two hundred leagues from the coast of Chili.
Meteorological From the 23d of February, to the 3d of March, we
Observations. had westerly winds, constantly varying between S.
W.. and N. W. with calms and rain: every day, either a little before
noon, or soon after, we had sudden gusts of rain, accompanied with
thunder. It was strange to us to meet with this extraordinary wind,
under the tropic, and in that ocean, so much renowned above all
other seas, for the uniformity and the freshness of the E. and S. E.
trade-winds; which are said to reign in it all the year round. We shall
find more than one opportunity to make the same observation.
Astronomical During the month of February, M. Verron
observations, communicated to me the result of four observations,
compared with
towards determining our longitude. The first, which
the ship’s
reckoning. was made on the 6th at noon, differed from my
reckoning only 31′; which I was more to the
westward than his observation. The second, taken at noon on the
11th, differed from my estimated longitude 37′ 45″, which I was to
the eastward of him. By the third observation, made on the 22d,
reduced to noon, I was more westward than he, by 42′ 30″; and I
had 1° 25′ of difference west, from the longitude determined by the
observations of the 27th. Then we met with calms and contrary
winds. The thermometer, till we came into 45° lat. always kept
between 5° and 8° above the freezing-point: it then rose
successively; and when we ran between 27° and 24° of lat. it varied
from 17° to 19°.
There was an almost epidemical sore-throat among the crew of
my frigate, as soon as we had left the straits. As it was attributed to
the snow-waters of the straits, I ordered every day, that a pint of
vinegar, and red hot bullets should be put into the scuttled cask,
containing the water for the crew to drink, on the upper deck.
Happily these sore throats yielded to the simplest remedies; and, at
the end of March, we had no-body upon the sick-list. Only four
sailors were attacked by the scurvy. About this time we got plenty of
Bonitos and Great-ears (Grandes-Oreilles); and, during eight or ten
days, sufficient were taken to afford one meal a-day for the crews of
both ships.
Chart
of the Discoveries
in the
South Pacifick Ocean,
made by
M. de Bougainville.
in 1768.
Continuation
of the
Track
of the
French Ships.
Meeting with During March, we ran on the parallel of the first
the first isles. lands and isles marked on the chart of M. Bellin, by
the name of Quiros’s Isles. On the 21st we caught a 1768. March.
tunny, in whose belly we found same little fish, not yet digested, of
such species as never go to any distance from the shore. This was a
sign of the vicinity of land. Indeed, the 22d, at six in the morning,
we saw at once four little isles, bearing S. S. E. ½E. and a little isle
about four leagues west. The four isles I called les Observations
quatre Facardins; and as they were too far to on one of these
windward, I stood for the little isle a-head of us. As isles.
we approached it, we discovered that it is surrounded with a very
level sand, and that all the interior parts of it are covered with thick
woods, above which the cocoa-trees raise their fertile heads. The
sea broke much to the N. and S. and a great swell beating all along
the eastern side, prevented our access to this isle in that part.
However, the verdure charmed our eyes, and the cocoa-trees every
where exposed their fruits to our sight, and over-shadowed a grass-
plot adorned with flowers; thousands of birds were hovering about
the shore, and seemed to announce a coast abounding in fish, and
we all longed for a descent. We thought this would be easy on the
western-side; and we ran along the coast at the distance of about
two miles. We saw the sea break on every side with equal force,
without a single harbour or creek, which might serve for shelter, or
stem the force of the sea. Thus losing all hopes of landing there,
unless at the evident risk of having our boats staved to pieces, we
resumed our course again, when some of our people cried out, that
they saw three men running to the sea-shore. We It is inhabited,
should never have thought that so small an isle notwithstandin
could be inhabited; and my first conjectures were, gsize. its small
The isle which at first was called New Cythera, is known by the
name of Taiti amongst its inhabitants. Its latitude Geographical
has been determined in our camp, from several position of
meridian altitudes of the sun, observed on shore Taiti.
with a quadrant. Its longitude has been ascertained by eleven
observations of the moon, according to the method of the horary
angles. M. Verron had made many others on shore, during four days
and four nights, to determine the same longitude; but the paper on
which he wrote them having been stolen, he has only kept the last
observations, made the day before our departure. He believes their
result exact enough, though their extremes differ among themselves
7° or 8°. The loss of our anchors, and all the accidents I have
mentioned before, obliged us to leave this place much sooner than
we intended, and have made it impossible for us to survey its coasts.
The southern part of it is entirely unknown to us; that which we
have observed from the S. E. to the N. W. point, seems to be fifteen
or twenty leagues in extent, and the position of its principal points,
is between N. W. and W. N. W.
Better Between the S. E. point and another great cape
anchorage than advancing to the northward, about seven or eight
that where we
were.
leagues from the former, you see a bay open to the
N. E. which has three or four leagues depth. Its shores gradually
descend towards the bottom of the bay, where they have but little
height, and seem to form the finest and best peopled district of the
whole island. It seems it would be easy to find several good
anchoring-places in this bay. We were very ill served by fortune in
meeting with our anchorage. In entering into it by the passage
where the Etoile came out at, M. de la Giraudais assured me, that
between the two most northerly isles, there was a very safe
anchorage for at least thirty ships; that there was from twenty-three
to between twelve and ten fathom of water, grey sand and ooze;
that there was a birth of a league in extent, and never any sea. The
rest of the shore is high, and seems in general to be quite
surrounded by a reef, unequally covered by the sea, and forming
little isles in some parts, on which the islanders keep up fires at
night on account of their fishery, and for the safety of their
navigation; some gaps from space to space form entrances to the
part within the reefs, but the bottom must not be too much relied
upon. The lead never brings up any thing but a grey sand; this sand
covers great masses of hard and sharp coral, which can cut through
a cable in one night, as fatal experience taught us.
Beyond the north point of this bay, the coast forms no creek, nor
no remarkable cape. The most westerly point is terminated by a low
ground, from which to the N. W. and at about a league’s distance,
you see a low isle, extending two or three leagues to the N. W.
Aspect of the The height of the mountains in the interior parts
country. of Taiti, is surprising in respect to the extent of the
island. Far from making its aspect gloomy and wild, they serve only
to embellish it, offering to the eye many prospects and beautiful
landscapes, covered with the richest productions of nature, in that
beautiful disorder which it was never in the power of art to imitate.
From thence spring a vast number of little rivulets, which greatly
contribute to the fertility of the country, and serve no less to supply
the wants of the inhabitants than to adorn and heighten the charms
of the plains. All the flat country, from the sea-shore to the foot of
the mountains, is destined for the fruit-trees, under which, as I have
already observed before, the houses of the people of Taiti are built,
without order, and without forming any villages. One would think
himself in the Elysian fields: Public paths, very judiciously laid out,
and carefully kept in a good condition form the most easy
communication with every part of the country.
Its productions. The chief productions of the isle are [99]cocoa-
nuts, plantains or bananas, the bread-fruit, yams, curassol, okras,
and several other roots and fruits peculiar to the country: plenty of
sugar-canes which are not cultivated, a species of wild indigo, a very
fine red and a yellow substance for dying, of which I cannot say
from whence they get them. In general, M. de Commerçon has
found the same kinds of vegetables there as are common in India.
Aotourou, whilst he was amongst us, knew and named several of
our fruits and legumes, and a considerable number of plants,
cultivated by the curious, in hot-houses. The wood which is fit for
carpenters work grew on the mountains, and the islanders make
little use of it; they only employ it for their great periaguas, which
they make of cedar wood. We have likewise seen pikes of a black,
hard and heavy wood among them, very like iron-wood. For building
their common periaguas, they make use of the tree which bears the
bread-fruit. This is a wood which will not split, but is so soft and full
of gum, that it is only as it were bruised when worked with a tool.
It does not This isle, though abounding with very high
appear that mountains, does not seem to contain any minerals,
there are any
mines.
since the hills are every where covered with trees
and other plants[100]. At least it is certain that the
islanders do not know any metals. They give the same name of
aouri, by which they asked us for iron, to all the kinds of metals we
could shew them. But in what manner they became acquainted with
iron, is not easily understood; however, I shall soon mention what I
think on this subject. I know of only a single rich There are fine
article of commerce, viz. very fine pearls. The wives pearls.
and children of the chief people wear them at their ears; but they
hid them during our stay amongst them. They make a kind of
castanets of the shells of the pearl-oyster, and this is one of the
instruments employed by their dancers.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
textbookfull.com